开发者

Server alias for virtual host doesn't load site

Here's my current virtual host setup for xampp:

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentR开发者_运维知识库oot 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 domain (usermap). I wanted to add an other domain which points the exact same site configuration with a different domain (so that I can do different things in the code based on the domain). That's why I added the ServerAlias line.

I have both hostnames resolve to 127.0.0.1 in the 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 on loading if I try usermap2. It shows a blank page and "sending request to usermap2..." is in the status bar, but nothing else is happening. Is there a logfile which I could check to see why it's not working? The apache/logs don't show anything unusal.


did you try:

ServerAlias usermap usermap2
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜