Apache needs at least execute permissions on all the parent directories of the vhost dir.
I'm trying to set up a Rails app running under Apache on CentOS 4.3. I'm using Phusion Passenger (
mod_rails) I made sure the app deployment dir is owned by group Apache and the permissions are set to allow the group to read it.
In my Apache config I have...
<VirtualHost *:80> ServerAdmin firstname.lastname@example.org DocumentRoot "/home/sneedmoure/deployed_rails_apps/myapp/current/public" ServerName myapp.com ServerAlias www.myapp.com ErrorLog "logs/myapp.com-error_log" CustomLog "logs/myapp.com-access_log" common CustomLog "logs/myapp.com-deflate_log" deflate <Directory "/home/sneedmoure/deployed_rails_apps/myapp/current/public"> Order allow,deny Allow from all #AllowOverride all # Not sure whether I need this Options -MultiViews # Passenger docs say to include this </Directory> </VirtualHost>
When I try to access my app in the browser I get a 403 error.
In the error log I'm getting entries like...
[Wed Nov 25 03:01:19 2009] [error] [client 123.456.789.12] (13)Permission denied: access to / denied
I've tried different paths within the app and get the same result. It does work fine on my development machine.
Any notion what I'm doing wrong?