LINUX基于域名的虚拟主机问题,求高手指教
时间:2011-12-07
来源:互联网
检查/home/httpd-2.2.21/bin/apachectl -S
报错信息[warn] VirtualHost 192.168.1.100:0 overlaps with VirtualHost 192.168.1.100:0, the first has precedence, perhaps you need a NameVirtualHost directive
[Wed Dec 07 10:57:12 2011] [warn] VirtualHost 192.168.1.100:0 overlaps with VirtualHost 192.168.1.100:0, the first has precedence, perhaps you need a NameVirtualHost directive
[Wed Dec 07 10:57:12 2011] [warn] NameVirtualHost 10.197.196.100:0 has no VirtualHosts
VirtualHost configuration:
192.168.1.100:* www.myweb.com (/home/httpd-2.2.21/conf/httpd.conf:242)
Syntax OK
怀疑是原httpd.conf默认中设置的站点信息和我设置的冲突,我已将原默认配置信息删除 ,难道是我没删干净吗?
我的配置信息如下
Listen 80
NameVirtualHost 192.168.1.100
<VirtualHost 192.168.1.100>
ServerName www.myweb.com
DocumentRoot /home/httpd-2.2.21/htdocs
ServerAdmin [email protected]
</VirtualHost>
<VirtualHost 192.168.1.100>
ServerName www.myweb1.com
DocumentRoot /var/www/myweb1
ServerAdmin [email protected]
ErrorLog /var/vhlogs/myweb1/error_log
TransferLog /var/vhlogs/myweb1/access_log
</VirtualHost>
<VirtualHost 192.168.1.100>
ServerName www.myweb2.com
DocumentRoot /var/www/myweb2
ServerAdmin [email protected]
ErrorLog /var/vhlogs/myweb2/error_log
Transferlog /var/vhlogs/myweb2/access_log
</VirtualHost>
<Directory /var/www>
Options FollowSymLinks
Allowoverride None
Order deny,allow
Allow from all
</Directory>
报错信息[warn] VirtualHost 192.168.1.100:0 overlaps with VirtualHost 192.168.1.100:0, the first has precedence, perhaps you need a NameVirtualHost directive
[Wed Dec 07 10:57:12 2011] [warn] VirtualHost 192.168.1.100:0 overlaps with VirtualHost 192.168.1.100:0, the first has precedence, perhaps you need a NameVirtualHost directive
[Wed Dec 07 10:57:12 2011] [warn] NameVirtualHost 10.197.196.100:0 has no VirtualHosts
VirtualHost configuration:
192.168.1.100:* www.myweb.com (/home/httpd-2.2.21/conf/httpd.conf:242)
Syntax OK
怀疑是原httpd.conf默认中设置的站点信息和我设置的冲突,我已将原默认配置信息删除 ,难道是我没删干净吗?
我的配置信息如下
Listen 80
NameVirtualHost 192.168.1.100
<VirtualHost 192.168.1.100>
ServerName www.myweb.com
DocumentRoot /home/httpd-2.2.21/htdocs
ServerAdmin [email protected]
</VirtualHost>
<VirtualHost 192.168.1.100>
ServerName www.myweb1.com
DocumentRoot /var/www/myweb1
ServerAdmin [email protected]
ErrorLog /var/vhlogs/myweb1/error_log
TransferLog /var/vhlogs/myweb1/access_log
</VirtualHost>
<VirtualHost 192.168.1.100>
ServerName www.myweb2.com
DocumentRoot /var/www/myweb2
ServerAdmin [email protected]
ErrorLog /var/vhlogs/myweb2/error_log
Transferlog /var/vhlogs/myweb2/access_log
</VirtualHost>
<Directory /var/www>
Options FollowSymLinks
Allowoverride None
Order deny,allow
Allow from all
</Directory>
作者: flyblood100 发布时间: 2011-12-07
我是不是NameVirtualHost 192.168.1.100
放的位置不对啊?系统没认到这个指令,我不太会配httpd.conf,参照参考资料先做测试
放的位置不对啊?系统没认到这个指令,我不太会配httpd.conf,参照参考资料先做测试
作者: flyblood100 发布时间: 2011-12-07
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28