Server alias for virtual host does not load site
Here's my current virtual host setup for xampp:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot c:/misc/proj/usermap
ServerName usermap
ServerAlias usermap2
ErrorLog c:/misc/proj/usermap/logs/error_log
CustomLog c:/misc/proj/usermap/logs/access_log common
<Directory "c:/misc/proj/usermap">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
The site works fine with the ServerName (usermap) domain. I wanted to add another domain that specifies the same site configuration with a different domain (so I can do different things in the code based on the domain). So I added the ServerAlias ββline.
I have the hostname for 127.0.0.1 in my hosts file:
127.0.0.1 usermap
127.0.0.1 usermap2
The site works fine if I use the original usermap domain, but the browser keeps loading if I try to use usermap2. It shows a blank page and "sending a request to usermap2 ..." is in the status bar, but nothing else happens. Is there a log file that I could check to see why it isn't working? Apache / logs show nothing.
+2
tom
source
to share