Apache Virtual Hosts

Upgraded to WAMPP v 3.0.6 and this is driving me nuts.
I can access localhost using I.P. address from the network but not my other directory that contains the aliases.
Localhost computer can access both without issues

-VirtualHost *:80-
	ServerName localhost
	DocumentRoot c:/wamp64/www

-Directory  "c:/wamp64/www/" -
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
		Require ip 192.168.0

-VirtualHost *:80-
	ServerName DFWeb
	DocumentRoot "d:"

-Directory  "d:/"-
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		Require local
		Require ip 192.168.0

You would never be able to access the first virtual host from another machine, “localhost” refers to the host itself i.e. 1270.0.0.1 - that won’t be the same on anotehr machine.

Your best bet will be to set up a few fake domains using the ‘hosts file’ and some faked dns entries.

1 Like

Check your server ip:
ipconfig

And try to check site by this ip (not localhost or 127.0.0.1).

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.