我已经做到了这一点,谁能告诉我为什么我的Rails应用程序没有加载?
hack ~ # cd /www ; rails mysite.com ; cd /etc/apache2/sites-available
hack sites-available # cat default
<VirtualHost *:80>
ServerName mysite.com
ServerAlias dev.mysite.com
DocumentRoot /www/htdocs/mysitecom
ErrorLog "|/usr/sbin/rotatelogs /www/logs/mysite.com/error_combined_log 7862400"
CustomLog "|/usr/sbin/rotatelogs /www/logs/mysite.com/access_combined_log 7862400" combined
ServerSignature email
RailsBaseURI /
<Directory /www/htdocs/mysite.com>
Allow from all
Options -MultiViews
</Directory>
</VirtualHost>
hack sites-available # 发布于 2012-10-09 01:34:18
Mysite.com您已经在//
将DocumentRoot更改为/www/mysite.com/public或应用程序的公共文件夹实际所在的任何位置。
确保passenger已启用(并停止使用root):
hack $ sudo a2enmod passenger
hack $ sudo /etc/init.d/apache2 restarthttps://stackoverflow.com/questions/10793629
复制相似问题