Chinaunix

标题: apache虚拟主机的问题 [打印本页]

作者: SexyPipe    时间: 2008-07-10 10:10
标题: apache虚拟主机的问题
我的机器apache+weblogic的方式,有两个域名,
为了统计需要配置虚拟主机区分不同的访问日志,
但是在增加了虚拟主机之后,有些页面无法访问了,
错误日志为:
[Thu Jul 10 09:40:41 2008] [error] CONNECTION_REFUSED [os error=0, line 1576 of ../nsapi/URL.cpp]: 1.2.3.7:8000 errno = 0

[Thu Jul 10 09:48:09 2008] [notice] Apache/1.3.33 (Unix) Resin/2.1.17 mod_jk/1.2.15 configured -- resuming normal operations


8000是weblogic上的端口

虚拟主机配置如下:
NameVirtualHost *:80


<VirtualHost *:80>
    ServerAdmin webmaster@a.cn
   
    ServerName www.a.cn
</VirtualHost>3
<VirtualHost *:80>
    ServerAdmin webmaster@b.cn
   
    ServerName www.b.cn
</VirtualHost>

[ 本帖最后由 SexyPipe 于 2008-7-10 10:15 编辑 ]
作者: 13319085    时间: 2008-07-13 22:49
</VirtualHost>3    ???
作者: SexyPipe    时间: 2008-07-14 14:36
3不是关键,是笔误,还请各位多帮忙啊
作者: linuxsafe    时间: 2008-07-18 11:11
标题: 我的好像不用加端口就可以访问
NameVirtualHost 192.168.0.221
<virtualHost 192.168.0.221>
ServerName www.a.cn
DocumentRoot /www/a
</VirtualHost>

<virtualHost  192.168.0.221>
serverName www.b.com.cn
DocumentRoot /www/b
</virtualHost>
作者: linuxsafe    时间: 2008-07-18 11:13
标题: SexyPipe 他妈的比我还注册CU早呢
SexyPipe 他妈的比我还注册CU早呢
作者: 立志不打工    时间: 2008-07-18 11:56
标题: 可能是这个原因,我只是建议.我在作虚拟主机是遇到过
<VirtualHost *:80>
    ServerAdmin webmaster@a.cn
   
    ServerName www.a.cn
DirectoryIndex index.php index.html index.htm index.shtml
</VirtualHost>3
<VirtualHost *:80>
    ServerAdmin webmaster@b.cn
   
    ServerName www.b.cn
DirectoryIndex index.php index.html index.htm index.shtml
</VirtualHost>




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2