I have done this, can anyone tell me why my Rails application isn't loading?
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 #
rails new mysite.com
).Change DocumentRoot to /www/mysite.com/public or wherever your app's public folder actually lives.
Make sure passenger is enabled (and quit using root):