为什么Passenger不能与Apache2一起运行以及SSL配置

时间:2018-11-08 12:27:11

标签: ruby-on-rails apache apache2 passenger

我正在尝试使用Apache2(Web服务器)和Phusion Passenger(应用程序服务器)托管Rails应用程序。 我使用旅客安装指南安装了Apache2。 现在,我希望Apache2在重新启动后自动启动乘客服务。 但这不起作用。我使用passenger-status命令获得以下报告:

----------- General information -----------
Max pool size : 6
App groups    : 0
Processes     : 0
Requests in top-level queue : 0

----------- Application groups -----------

如以上报告所示,没有乘客实例在运行,但同时apache状态为活动并在运行。

这是ssl.conf,我在其中指定了Rails应用程序的路径,如下所示:

Listen 443 https

<VirtualHost *:443>

DocumentRoot "/opt/apps/myrailsapp/public/"
ServerName myrailsapp.com

ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log
LogLevel warn

SSLEngine on

#   See the mod_ssl documentation for a complete list.
SSLCipherSuite HIGH:3DES:!aNULL:!MD5:!SEED:!IDEA

SSLCertificateFile /etc/httpd/ssl/myrailsapp.com.pem
SSLCertificateKeyFile /etc/httpd/ssl/myrailsapp.com.key
SSLCertificateChainFile /etc/httpd/ssl/chain.pem

 <Directory "/opt/apps/myrailsapp/public/">
    Options ExecCGI FollowSymLinks
    Require all granted
    Order allow,deny
    Allow from all
 </Directory>
 PassengerAppEnv production
 PassengerAppRoot "/opt/apps/myrailsapp/public/"
 PassengerHighPerformance on

CustomLog logs/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>

我不确定该如何解决此问题。任何帮助将不胜感激。谢谢

0 个答案:

没有答案