Windows8, localhost access is forbidden. Resoved
I have resoved the problem. Just change a line in httpd.conf.
Listen 80
to
Listen 0.0.0.0:80
------------------------------------
I have upgrade my win 7 to win 8, and install wampserver2.2e-php5.4.3-httpd2.2.22-mysql5.5.24-x64.
Now I access localhost, it tell me the access forbidden.
The system environment:
Windows 8 Pro
Microsoft visual c++ 2010 x6410.0.40219
wampserver2.2e-php5.4.3-httpd2.2.22-mysql5.5.24-x64
Hosts:
127.0.0.1 localhost
Access [
localhost] in browser:
Forbidden
You don't have permission to access / on this server.
Some configuration of httpd.conf:
ServerName localhost:80
DocumentRoot "D:/Applications/wamp/www/"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "D:/Applications/wamp/www/">
Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
I change the "Allow from 127.0.0.1" to "Allow from all", and I got the same result.
I added some virtual hosts, I can access the virtual hosts by the domain name.
Did anybody have the same problem? I need helps. Very thanks.
Edited 3 time(s). Last edit at 10/31/2012 10:30AM by iinlanjian.