I have followed the linode tutorials for setting up apache2 and passenger
http://library.linode.com/web-servers/a ... tual-hosts
myapp is working fine at example.com:3000. I have followed all the installation instructions for passenger and it appears to be set up correctly
In my virtual host I have:
<VirtualHost *:80>
ServerAdmin
webmaster@example.com
ServerName example.com
ServerAlias
www.example.com
DocumentRoot /srv/www/example.com/application/public
ErrorLog /srv/www/example.com/logs/error.log
CustomLog /srv/www/example.com/logs/access.log combined
<Directory /srv/www/example.com/application/public >
AllowOverride all
Options -Multiviews
</Directory>
</VirtualHost>
I have deleted the index.html file and in my rails app I have set root to: 'pages#home'. I am using rails 3.2.2 in line with the hartl rails tutorial here:
http://ruby.railstutorial.org/chapters/ ... on=3.2#top
When I go to example.com, all I see is a list of files in the directory instead of pages#home being served. What could be the problem here? Do I need to do some kind of redirection? Thanks