403 Forbidden on 192.168.0.1; 127.0.0.1 successfully accesses

Asked

Viewed 424 times

0

I installed Easyphp (Win7) with Apache 2.4.25 x86 on a memory card (E:), I successfully set up the website directory (E:/My Web Sites/) and climbed Apache.

When performing local access in 127.0.0.1 I get success -- are listed in the browser the files of the directory correctly -- but trying local access via 192.168.0.104 (IP of the machine) returns 403 Forbidden:

Forbidden

You don’t have permission to access / on this server.

I edited http.conf at some points, and it is currently found as follows:

##testei com estas 4 linhas individualmente e simultaneamente

Listen *:80
#Listen 0.0.0.0:80
#Listen 127.0.0.1:80
#Listen 192.168.0.104:80

(...)

DocumentRoot "E:/Meus Web Sites/"
<Directory "E:/Meus Web Sites/">

(...)

<Directory "E:/Program Files (x86)/EasyPHP-Devserver-17/eds-modules">
    Options FollowSymLinks Indexes
    AllowOverride All
    Order allow,deny
    Allow from all
Require all granted
</Directory>

(...)

<VirtualHost 127.0.0.1>
    DocumentRoot "E:/Meus Web Sites/"
    ServerName 127.0.0.1
    <Directory "E:/Meus Web Sites/">
        Options FollowSymLinks Indexes ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
        Require all granted
    </Directory>
</VirtualHost>

Order allow,Ny, Allow from all and Listen *:80 were suggestions for solving the problem I found here, but were not enough for me.

Thank you in advance.

1 answer

0


I managed to fix it: I changed it

<VirtualHost 127.0.0.1>

for

<VirtualHost *:80>

Good luck to you all.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.