Get your own customer support community
 

FAQ: 403 Forbidden Error

If you're getting a 403 Forbidden error when trying to access your virtual hosts, here's how to solve it.

What directory are your website files stored in? By default, the version of Apache that comes with OS X expects all of your websites to be in folders inside

/Library/WebServer/Documents

If you're storing them in your local Sites folder (e.g. /Users/<your-user-name>/Sites) you'll need to edit your Apache config file to let it know about the change. In Leopard that file is

/private/etc/apache2/httpd.conf

Open that file in a text editor and look for the following two lines:

DocumentRoot "/Library/WebServer/Documents"

-and a few lines below it-

<directory>

Change the directories to match where you store your websites, save the file, restart your Mac, and (hopefully) that'll fix the problem.

If you're still running into issues or have any other questions, just let us know.</your-user-name>
 
happy I’m happy
Inappropriate?
2 people have this question

The company marked this question as answered.


User_default_medium