Apache – Mac: getting a 403 Forbidden error: You don’t have permission to access / on this server.

At first, I changed only this line:

Original:

# DocumentRoot “/Library/WebServer/Documents”
DocumentRoot

 

Modified:

“/Users/yulin/Documents/2012/work/putiSite/putiVan20121115”

I got “You don’t have permission… …”

After I changed this line:

Original:

# <Directory “/Library/WebServer/Documents”>

Modified:

<Directory “/Users/yulin/Documents/2012/work/putiSite/putiVan20121115”>

And restart apache by  typing:

sudo /usr/sbin/apachectl restart

It is working.

Advertisements

About zephyr9000

Happy sailer
This entry was posted in Apache, Mac and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s