127.0.0.1 does not work on Wamp server

I installed WAMP on my system and it http://localhostworks beautifully.

but when I got 127.0.0.1, then it gives Forbidden an error:

Forbidden

You do not have permission to access this server.

I donโ€™t know what kind of mistake it is for

in httpd.config, I have permission to allow everything:

<Directory "c:/wamp/www/">
    Options Indexes FollowSymLinks
    AllowOverride all
    Order Deny,Allow
    Allow from all
    Allow from 127.0.0.1
</Directory>

and if I installed in my host file

127.0.0.1  localhost
127.0.0.1  test

and access check gives the same error. Any suggestion would be appreciated. thanks

0
source share
1 answer

The correct syntax for Apache 2.4.x is

<Directory "c:/wamp/www/">
    Options Indexes FollowSymLinks
    AllowOverride all
    Require all granted
</Directory>

Now, if you really do not want to provide access to your site while you are developing it for the entire Internet, the best way would be

<Directory "c:/wamp/www/">
    Options Indexes FollowSymLinks
    AllowOverride all
    Require local
</Directory>

localhost, 127.0.0.1 :: 1.:: 1 - IPV6 127.0.0.1

WAMPServer (Apache) ,

<Directory "c:/wamp/www/">
    Options Indexes FollowSymLinks
    AllowOverride all
    Require local
    Require ip 192.168.0
</Directory>

. 3 4 , ip .

, 192.168.0.x, , .

WAMPServer 2.4. , Apache MySQL , , - , , !

+1

Source: https://habr.com/ru/post/1610330/


All Articles