免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2362 | 回复: 5
打印 上一主题 下一主题

[Web] apache虚拟主机的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-10 10:10 |只看该作者 |倒序浏览
我的机器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 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-07-13 22:49 |只看该作者
</VirtualHost>3    ???

论坛徽章:
0
3 [报告]
发表于 2008-07-14 14:36 |只看该作者
3不是关键,是笔误,还请各位多帮忙啊

论坛徽章:
0
4 [报告]
发表于 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>

论坛徽章:
0
5 [报告]
发表于 2008-07-18 11:13 |只看该作者

SexyPipe 他妈的比我还注册CU早呢

SexyPipe 他妈的比我还注册CU早呢

论坛徽章:
0
6 [报告]
发表于 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>
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP