0
安装了phusion乘客并部署了我的rails应用程序后,当我去[链接] http://servername.example.com/app时,我看到的只是我的app/public目录下列出的文件。我确定“app”指向“app/public”目录,并且根据用户文档正确设置phusion乘客设置。Rails/Phusion Passenger仅列出文件
安装了phusion乘客并部署了我的rails应用程序后,当我去[链接] http://servername.example.com/app时,我看到的只是我的app/public目录下列出的文件。我确定“app”指向“app/public”目录,并且根据用户文档正确设置phusion乘客设置。Rails/Phusion Passenger仅列出文件
罪魁祸首是SELinux不允许apache运行phusion乘客。我在这里找到了答案 - https://groups.google.com/forum/?fromgroups=#!topic/phusion-passenger/qaVUIq2HceE。
这是我如何固定它:
[[email protected] conf]# getenforce
Enforcing
[[email protected] conf]# echo 0 > /selinux/enforce
[[email protected] conf]# getenforce
Permissive
[[email protected] conf]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[[email protected] conf]# passenger-status
----------- General information -----------
max = 6
count = 0
active = 0
inactive = 0
Waiting on global queue: 0
----------- Application groups -----------
[[email protected] conf]#
现在,当我去我的应用程序URL,它工作正常。