Google-chrome – Can’t access localhost with wamp and Chrome

google-chromelocalhostwamp

from today, when I go to localhost (http://localhost) after launch WAMP, in Firefox, as usual, everything is normal, but Chrome says "Forbidden, You don't have permission to access / on this server."

Anyone can help me please ?

Best Answer

Edit: Solved it for me.

This is an IPv6 problem. Google must have just updated Chrome.

First of all ensure that your hosts file has the following line and that it is uncommented.

::1 localhost

Next, open up your Apache config (httpd.conf) and add the following to the listen section:

Listen [::1]:80

Next, you need to edit you Directory statements in httpd.conf or your vhosts files. They probably look something like this.

<Directory "C:\path">
    Options Indexes FollowSymLinks
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
    AllowOverride All
</Directory>

Add an extra line after the 'Allow from 127.0.0.1' so it looks like this

<Directory "C:\path">
    Options Indexes FollowSymLinks
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
    Allow from ::1
    AllowOverride All
</Directory>