You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Li Li <fa...@gmail.com> on 2013/12/25 15:36:38 UTC
[users@httpd] only one virtual host works
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