OK, this is not about the details of how to install mod_rails on leopard, actually the process is pretty straightforward and there are already some good document on mod_rails’ website . Well, the confusing part of using mod_rails+apache on leopard is that you have to know how the default apache coming with leopard works.
This is what I did after I installed mod_rails and copied those three lines to the httpd.conf
<VirtualHost *:80>ServerName test.localDocumentRoot /Users/snow/Sites/test/publicRailsEnv development</VirtualHost>
Forbidden
You don’t have permission to access /images/logo_snap.jpg on this server.
After googling for a while and doing some test, I figured out the reason:
<Directory “/Users/snow/Sites/”>Options Indexes MultiViewsAllowOverride NoneOrder deny,allowAllow from all</Directory>In order to let symbolic links work properly, I changed my snow.conf file to<Directory “/Users/snow/Sites/”>Options Indexes MultiViews FollowSymLinksAllowOverride AllOrder allow,denyAllow from all</Directory>If you don’t add FollowSymLinks in options, you will still get the permission error page.
Leave a reply