I did install a couple of virtual hosts on my local machine for internal websites. It works fine, but I can't configure the virtual hosts so that I can call the sites with dot-syntax.
What I did in C:\WINDOWS\SYSTEM32\DRIVERS\ETC\HOSTS:
127.0.0.1 site1
127.0.0.1 site2
.
.
.
What I did in httpd.conf:
NameVirtualHost 127.0.0.1
<VirtualHost site1>
ServerName site1
ServerAlias 127.0.0.1
DocumentRoot c:/Apache/htdocs/site1
</VirtualHost>
<VirtualHost site2>
ServerName site2
ServerAlias 127.0.0.1
DocumentRoot c:/Apache/htdocs/site2
</VirtualHost>
.
.
.
So, it works fine - when I call the sites with "http://site1" etc.
But I would like to call the sites like "http://local.site1.de". But when I use a dot in the "ServerName" the virtual hosts won't work!
What is wrong? Thank you in advance.