[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    [users@httpd] only one virtual host works
From:       Li Li <fancyerii () gmail ! com>
Date:       2013-12-25 14:36:38
Message-ID: CAFAd71VpgCNu_cDQxtDMCgVSB58O97Wt4ABbOYamrzc--BpExA () mail ! gmail ! com
[Download RAW message or body]

hi all,
    I have a problem with virtual host. my configure here:
--------------------
Listen 0.0.0.0:80

NameVirtualHost *:80

<VirtualHost *:80>
    ServerName www.shiguanyinsi.org
    ServerAlias *.shiguanyinsi.org
    DocumentRoot /mnt/WEBS/shiguanyinsi.org
</VirtualHost>

<VirtualHost *:80>
    ServerName www.beihaichanyuan.org
    ServerAlias *.beihaichanyuan.org
    DocumentRoot /mnt/WEBS/beihaichan.org
</VirtualHost>
<VirtualHost *:80>
    ServerName www.chanlin.org
    ServerAlias *.chanlin.org
    DocumentRoot /mnt/WEBS/Chanlin.org
</VirtualHost>
--------------------------
the ip address of my server is: 115.28.16.53
I have checked the dns by:
nslookup www.shiguanyinsi.org
Server:  gjjdial.bta.net.cn
Address:  202.106.195.68

Non-authoritative answer:
Name:    www.shiguanyinsi.org
Address:  115.28.16.53

www.beihaichanyuan.org and www.chanlin.org is also checked.

but I can only visit www.beihaichanyuan.org in my pc. the other two
return 500 error

I have modifid the access log with %v and I found something strange.
in the access log, the request is sent to the correct virtual host.
the client get a 500 error. But I don't find anything in error log

I also check it by curl in the server:

1. curl -H 'Host:www.chanlin.org' http://www.chanlin.org/ return
correct content of www.chanlin.org
2. curl -H 'Host:www.beihaichanyuan.org'
http://www.beihaichanyuan.org/ return correct content of
www.beihaichanyuan.org
3. curl -H 'Host:www.beihaichanyuan.org' http://www.chanlin.org/ also
return the content of www.beihaichanyuan.org (that's correct)

but when I curl in my remote pc client.
1 and 3 is correct and 2 don't work

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic