Allow Wamp server access on another PC

How to solve "Forbidden" access of wamp or allow the wamp server to access from another computer on LAN? Here are the simple steps that we performed in WAMP Server 3.2.0! This will allow you to access the wamp server across the Local area network (LAN).

1. First open your wamp server

2. Then, in the wamp icon open the Apache menu





3. Now under apache select httpd-vhsts.conf: Apache->httpd-vhsts.conf

4. You will find this content in httpd-vhsts.conf file


#Virtual Hosts

#

<VirtualHost *:80>

  ServerName localhost

  ServerAlias localhost

  DocumentRoot "${INSTALL_DIR}/www"

  <Directory "${INSTALL_DIR}/www/">

    Options +Indexes +Includes +FollowSymLinks +MultiViews

    AllowOverride All

    Require local

  </Directory>

</VirtualHost>


Replace "Require local" with "Require all granted". Now your file httpd-vhsts.conf should look like this:


#Virtual Hosts

#

<VirtualHost *:80>

  ServerName localhost

  ServerAlias localhost

  DocumentRoot "${INSTALL_DIR}/www"

  <Directory "${INSTALL_DIR}/www/">

    Options +Indexes +Includes +FollowSymLinks +MultiViews

    AllowOverride All

    Require all granted

  </Directory>

</VirtualHost>


5. Now, restart the wamp. Your wamp will be accessible within LAN! You can access your wamp website from another PC.

Post a Comment

0 Comments