I’ve never done my development locally for CMS sites, and I’m attempting to rectify that. I’m running OSX Mountain Lion. I’ve started Apache, and everything works fine with accessing localhost. But I’d like to set up Virtual Hosts so I can keep local sites in their own folders, and that’s where I run into trouble. I’ve uncommented the VH line in httpd.conf, and based on tutorials, I’ve added the following to https-vhosts.conf:
<VirtualHost *:80>
DocumentRoot "/Library/WebServer/Documents"
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/Users/Todd/Sites/drupaldev/dons.com"
ServerName dons.local
ErrorLog "/private/var/log/apache2/dons.local-error_log"
CustomLog "/private/var/log/apache2/dons.local-access_log" common
<Directory "/Users/Todd/Sites/drupaldev/dons.com">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
I’ve also added “127.0.0.1 dons.local” to my hosts file. But trying to access dons.local leads to a 403 Forbidden error. I’ve done chmod 755 on the folder, but to no avail. Any ideas?
NOTE: Possibly important, I’m booting from a small SSD, which contains System files and Applications, but my user folder is on a different hard drive.