如何使用 Passenger 运行 SSL 提供服务

How to serve using Passenger running with SSL

我有一个 Rails 4 应用程序,我想 运行 使用 SSL 在 Passenger 上使用它。

我将 Passenger gem 添加到 gem 文件,运行 服务器使用:

 bundle exec rails s -e production -p 3001 --binding=0.0.0.0

在设置中我设置了 ssl = true,效果很好。推荐使用 SSL,服务器希望使用 HTTPS 调用应用程序。

当我像这样为 HTTPS 端口 443 设置虚拟主机时:

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 提供的。

这个案例有什么问题?我需要更改什么?

更好更简单的方法是为 apache 或 nginx 使用 passangermodule