使用Phusion Passenger的Ruby应用程序的虚拟主机

时间:2011-11-10 07:37:35

标签: ruby-on-rails apache passenger

我尝试使用Phusion Passenger运行Redmine。我运行虚拟主机等,但是当我在网络浏览器中键入我的网域,例如:http://mydomain.com/redmine/dispatch.rb,我可以下载这个rb文件,这个文件不是ruby的解析器,我没有错。

我已设置并启用了passenger_mod(乘客和红宝石的路径正确)等。

我需要检查什么?

Apache配置是基本的:

  ServerName domain.com
  ServerAdmin "email@email.pl"
  DocumentRoot /home/redmine/public_html

  ErrorLog /var/log/apache2/redmine-error.log
  LogLevel info

Ruby和Passenger路径为defualt(我不会在isntallation之后改变它。)

1 个答案:

答案 0 :(得分:1)

您需要将DocumentRoot设置为Rails应用程序的public文件夹:

DocumentRoot /home/redmine/public_html/public

有关详细信息,请参阅the Passenger docs