Wamp server v-host config for local network access

Spread the love

This is an example for accessing a path on server from local network. Could be useful if you just want to list files and download them on any device from server.

<VirtualHost *:9091>
  ServerName localhost
  ServerAlias localhost
  DocumentRoot "E:/"
  <Directory "E:/">
    Options Indexes MultiViews
    AllowOverride None
    Require ip 127.0.0.1 192.168.1.0/24
  </Directory>
</VirtualHost>

Now just enter the IP and port of the server in browser e.g. 192.168.1.122:9091, and you will presented with the list of files in the E:/ directory.

Cheers and Peace out!!!