我有一个Rails 4应用程序,我想在带有SSL的Passenger上运行它。
我将Passenger gem添加到gemfile并使用以下命令运行服务器:
bundle exec rails s -e production -p 3001 --binding=0.0.0.0
在设置中,我设置ssl = true
,这有效。建议使用SSL,服务器希望使用HTTPS调用应用程序。
当我为HTTPS端口443设置vhost时,如下所示:
ProxyPreserveHost On
ProxyRequests On
ServerName domain.de
ServerAlias *.domain.de
ProxyPass / https://subdomain.domain.de:3001/
ProxyPassReverse / https://subdomain.domain.de:3001/
SSLEngine on
我收到了这个错误:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at domain.de Port 443
SSL证书通过plesk 12.5提供。
这种情况下的问题是什么?我需要改变什么?
答案 0 :(得分:0)
更好,更简单的方法是使用passangermodule for apache或nginx