I am trying to allow sub urls on my apache/rails/phusion passenger install so that I can have php files at the top level and then rails apps in sub directories like blog for example:
I’ve followed the documentation here: http://www.modrails.com/documentation/Users%20guide%20Apache.html#deploying_rails_to_sub_uri
here is my httpd.conf virtual host entry:
<VirtualHost *:80>
ServerName xx.xx.xx.xx
DocumentRoot /var/www/html
<Directory /var/www/html>
Allow from all
</Directory>
RailsBaseURI /blog
<Directory /var/www/html/blog>
Options -MultiViews
</Directory>
</VirtualHost>
the apache user owns /var/www/html and here is my shortcut link:
http://d.pr/i/aLkP made with the ln command
and here is the error: http://d.pr/i/M3r4
The apache group must also be able to read and execute the the config and public folders and all parent folders. Try changing the permissions and restarting apache.
Your symlink should have the same name as the suburl, so your symlink should be named “blog”. It looks like it’s named “public” right now. You may want to place your symlinks in a separate folder in your
wwwdirectory.