I'm having a few problems when setting up IP-based virtual hosts. First of all I'm using the current XAMPP from apachefriends (XAMPP 1.7.7 with Apache 2.2.21) on Windows 7.
The basic functionality over the "main" server (from httpd.conf
) works perfect. But now I want to set up multiple vhosts with different IP-addresses, as I configured my network card to use all IP-addressess from 192.168.2.95 to 192.168.2.105 .
This is the virtual hosts entry:
<VirtualHost 192.168.2.96:80>
DocumentRoot "/xampp/hegedocs/www"
ServerName 192.168.2.96:80
</VirtualHost>
httpd -D DUMP_VHOSTS
says this:
PS G:\xampp\apache\bin> ./httpd -D DUMP_VHOSTS
VirtualHost configuration:
192.168.2.96:80 192.168.2.96 (G:/xampp/apache/conf/extra/httpd-vhosts.conf:45)
Syntax OK
But I am unable to access the vhost neither seems apache to listen on 192.168.2.96:80 - there is no entry shown for this address with netstat -a -b
.