Sunday, March 30, 2014

Localhost 403 Forbidden

When you typed in http://localhost and you got yourself Error 403, Forbidden You don't have permission to access / on this server. you have to open your httpd-vhost.conf file with Notepad++ or any text editor you use and add at this at the end of the file:


   DocumentRoot "C:\wamp\www"
   ServerName    localhost
   # ServerAlias   localhost


This is for when you use wamp. DocumentRoot is where your default directory for server. httpd-vhost.conf resides in C:\wamp\bin\apache\apache2.4.2\conf\extra

Good luck.

No comments: