LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1682|回复: 4

求助:虚拟主机问题has no VirtualHosts

[复制链接]
发表于 2006-7-19 12:15:50 | 显示全部楼层 |阅读模式
服务器正在为域名 test.dlmu.edu.cn提供服务,而我又想在同一个IP地址上加一个名叫www.dian.com.cn的虚拟主机,

DocumentRoot "/home/web"


NameVirtualHost  202.118...
<VirtualHost 202.118...>
    DocumentRoot /home/web
    ServerName  test.dlmu.edu.cn
    DirectoryIndex index.html index.htm index.shtml
</virtualHost>
NameVirtualHost  202.118...
<VirtualHost 202.118...>
    DocumentRoot /home/test
    ServerName   [www.dian.com.cn
    DirectoryIndex index.html index.htm index.shtml
</virtualHost>
提示 202.118...:80 has no VirtualHosts
是少装了什么模块吗?core?
还是配置问题呢
 楼主| 发表于 2006-7-19 12:47:29 | 显示全部楼层
自己顶一下
求设置过的朋友帮忙
回复 支持 反对

使用道具 举报

发表于 2006-7-19 14:11:51 | 显示全部楼层
NameVirtualHost *
<VirtualHost *>
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-19 14:47:22 | 显示全部楼层
<VirtualHost 202.118...:80>
以后可以正常访问第一个即test.dlmu.edu.cn
而第二个不可以:无法显示该网页
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-19 14:48:03 | 显示全部楼层
Post by eTony
NameVirtualHost *
<VirtualHost *>

这个应该可以是*也可以是具体的一个ip的呀
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表