Sorry, got the wrong end of that...
Well I used your V-hosts code and changed the IPs to the ones of the machine which it is hosted on, created the test directories and stuck in a index.html page in it then added a fort forwarding rule.
From the computer it is hosted on it comes up with the "Page cannot be displayed" error, from another computer on the same LAN network it just comes up with the DNS error and via a proxy/ remote external IP it comes up with a URL error, the same as bashing the keyboard in the URL box...
Justm thought- What if someone else has the same address:
http://www.test.com? Also I thought it cost to get a .com domain...
Any ideas?
Edit: The code I used is:
- Code: Select all
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
NameVirtualHost 192.168.1.100
<VirtualHost 192.168.1.100>
DocumentRoot c:/xampp/test1
ServerName www.test1.com
<Directory "c:/xampp/test1">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost 192.168.1.100>
DocumentRoot c:/xampp/test2
ServerName www.test2.com
<Directory "c:/xampp/test2">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>