Snow Leopard Apache Problem Fixed

I have delayed my upgrade to Snow Leopard on my main dev machine for ages and bit the bullet this weekend. I was pleased as punch with how straight forward things went but there were a few small niggles, one of which was that http://localhost/ fell flat on its nose. I have a few things going on with my Apache settings, one of which was to map my document root to the Sites directory so I needed to look at a couple of fixes. These two sources fixed things up a treat (thanks to both):

Mac OS X - Web Sharing

File Web Sharing

Look at Davis John’s comment:

New issue: I found that the symbolic links in the “Sites” folder weren’t being followed. I tried adding the FollowSymLinks option to my user-specific .conf file, but initially, it broke the server. I reverted, added it again and it is working correctly now. The necessary .conf file is located here:

/private/etc/apache2/users/yourusername.conf

and looks like this:

1
2
3
4
5
6
<Directory "/Users/yourusername/Sites/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>

Comments