403 Forbidden when accessing 192.168.0.1; 127.0.0.1 accesses successfully

0

I installed EasyPHP (Win7) with Apache 2.4.25 x86 on a memory card (E :), I successfully configured the site directory (E: / My Web Sites /) and uploaded or Apache.

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

  

Forbidden

     

You do not have permission to access / on this server.

I have edited http.conf in some places, and it is currently 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>

Allow allow, deny, 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.

    
asked by anonymous 04.09.2018 / 03:08

1 answer

0

I was able to resolve: I changed

<VirtualHost 127.0.0.1>

by

<VirtualHost *:80>

Good luck to all.

    
20.09.2018 / 03:01