I have Apache web server installed on local Windows 7 x64 machine. It has no global DNS name.
In default distribution it has virtual host configured in Apache/conf/extra/httpd-vhosts.conf file.
It has one directive
and multiple directives
Different names are written in
hosts file and all pointing to
Unfortunately, virtual hosts do not work. Only first
<VirtualHost> tag seems to be active. Nothing said on
httpd.exe starting and in
How to make virtual hosts working here?
I see no reason why DNS can be required.
GET request contains symbolic name of the site, so, the server has all information to distinguish which virtual host was called.
I found that virtual hosts DO work (without DNS!). It is a problem with one specific host.