I want to use Apache on my Mac to test sites I'm working on locally, as I'm accustomed to doing on Windows. Personal Web Sharing is enabled, and I can see the Apache welcome screen on 192.168.0.3 (the Mac's IP address), and the page under MyUserName/Sites/index.html at 192.168.0.3/~MyUserName
However, I store all my work under /Documents/Work/Projectname/, and I don't want to move it all under /MyUserName/Sites.
So what I'd normally do is edit Apache's httpd.conf and add a line like
but as far as I know on OS X you're not supposed to edit httpd.conf (well hidden under /private/etc/httpd/), but should edit /private/etc/httpd/users/MyUserName.conf instead.
Is that correct? Anyway, it doesn't work! I get 403 Forbidden when trying to access html files under 192.168.0.3/MyProjectName/.
However, I store all my work under /Documents/Work/Projectname/, and I don't want to move it all under /MyUserName/Sites.
So what I'd normally do is edit Apache's httpd.conf and add a line like
Code:
Alias /Projectname/ "/Users/MyUserName/Documents/Work/Projectname/"
but as far as I know on OS X you're not supposed to edit httpd.conf (well hidden under /private/etc/httpd/), but should edit /private/etc/httpd/users/MyUserName.conf instead.
Is that correct? Anyway, it doesn't work! I get 403 Forbidden when trying to access html files under 192.168.0.3/MyProjectName/.