"Forbidden. You don't have permission to access . . ."
Posted by: hockingbob (99.198.84.---)
Date: September 17, 2014 12:53PM

First of all I am not a coder so be gentle. I used Wampserver to (automatically) set up a local testing server to view websites as they would appear online. I use Dreamweaver CS6. I am a web designer so I have dozens of sites set up. The really weird thing is that some of the sites work fine (to be able to view live through Wampserver), but others with identical settings get the Forbidden error. Ideas? Thanks.

Options: ReplyQuote
Re: "Forbidden. You don't have permission to access . . ."
Posted by: Otomatic (Moderator)
Date: September 17, 2014 02:41PM

Hi,

If you have dozens of places to setup the only way is to use VirtulaHost: [forum.wampserver.com]

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: "Forbidden. You don't have permission to access . . ."
Posted by: hockingbob (99.198.84.---)
Date: September 18, 2014 01:31PM

Thanks for the quick response. I am onto step #2. "Add your new domain name to the HOSTS file." and am hung up. I can't find a hosts file as referenced per the instructions "`C:\windows\system32\drivers\etc\hosts`". I am using Windows 7 Professional. Any ideas?

Options: ReplyQuote
Re: "Forbidden. You don't have permission to access . . ."
Posted by: hockingbob (99.198.84.---)
Date: September 18, 2014 01:48PM

Never mind on the hosts file. Found it. Notepad++ didn't show it, but Windows Explorer did.

Options: ReplyQuote
Re: "Forbidden. You don't have permission to access . . ."
Posted by: hockingbob (99.198.84.---)
Date: September 18, 2014 02:35PM

At the end of step two I'm not quite clear on where this command is supposed to go.

net stop dnscache
net start dnscache

I'm assuming it goes into the hosts file, but not sure.

Options: ReplyQuote
Re: "Forbidden. You don't have permission to access . . ."
Posted by: Otomatic (Moderator)
Date: September 18, 2014 03:15PM

Hi,

> I'm assuming it goes into the hosts file, but not sure.

Please, READ and RE-READ the link provided. Il is written :

Now we must tell windows to refresh its domain name cache, so launch a command window again using the Run as Administrator menu option again, and do the following.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.