Wednesday, December 14, 2016

How to allow remote access to WAMP server

When i try to access WAMP from my mobile i got this error:

Forbidden You don't have permission to access / on this server


then i insert Require all granted into 2 files :

1. C:\wamp64\bin\apache\apache2.4.18\conf\httpd
       
DocumentRoot "C:/wamp/www"
<Directory />
    Options None
    AllowOverride None
   Require all granted
</Directory>

<Directory C:/wamp/www>
    Options None
    AllowOverride All
    Require all granted
</Directory>

2. C:\wamp64\bin\apache\apache2.4.18\conf\extra\httpd-vhosts

<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

3. Allow ports
    Controlpanel -- windows firewall -- advanced setting -- inbound rules -- ports -- all local or port 80

0 Comments:

Post a Comment