Hi there,
I am trying to get virtual hosts set up on my iMac, running Apache2. When I type in “http://localhost” in the URL bar, I get the “It works!” message.
So I tried to set up some virtual hosts in httpd.conf and httpd-vhosts.conf and the Mac hosts file per instructions found on every website out there. I then placed my website in the Library/WebServer/Documents/nameofwebsite folder here. My vhosts file points to:
<VirtualHost *:80>
DocumentRoot "/Library/WebServer/Documents/nameofwebsite"
ServerName nameofwebsite
<Directory /Library/WebServer/Documents/nameofwebsite>
Options FollowSymLinks
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
When I go to “http://nameofwebsite” I get a 403 Permissions error. Not sure how to fix this, and any advice would be appreciated.