【发布时间】:2012-05-21 22:16:43
【问题描述】:
如何设置 apache 以在 rails 应用程序在服务器上时显示它?我的 rails 应用程序在本地主机上运行良好,但是当我转到外部站点时,它会为我提供索引信息
喜欢这个
Name Last modified Size Description
[TXT] 404.html 21-May-2012 21:38 728
[TXT] 422.html 21-May-2012 21:38 711
[TXT] 500.html 21-May-2012 21:38 643
[IMG] favicon.ico 21-May-2012 21:38 0
[TXT] robots.txt 21-May-2012 21:38 204
这是我的虚拟主机信息
<VirtualHost *:80>
ServerAdmin example@example.com
ServerName server.example.com
# ServerAlias
DocumentRoot /var/www/sample_app/current/public
ErrorLog /var/www/sample_app/error.log
RailsEnv production
<Directory "/var/www/sample_app/current/public">
Options Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
【问题讨论】:
-
对不起,如果这是一个愚蠢的问题,但是您是否设置了诸如 Mongrel Cluster 或Passenger 之类的东西...?
-
是的,乘客正在工作
标签: ruby-on-rails apache virtualhost