解决[warn] _default_ VirtualHost overlap on port 80, the first has precedence问题
来源:互联网 发布:东京淘宝网 编辑:程序博客网 时间:2024/06/05 02:23
问题背景:
在apache2的httpd.conf里新增加了1个VirtualHost,域名是www.ligh.com,此时,服务器总共2个VirtualHost ,apachectl restart的时候却出现了下面的警告提示:
[warn] _default_ VirtualHost overlap on port 80, the first has precedence
大概意思就是说后面新增加的这个VirtualHost 由于端口被占用,不能生效,沿用第一个虚拟主机的配置。
检查了一下,发现原来在httpd.conf里,我没有把#NameVirtualHost *:80前的注释去掉,导致这个没有生效。
解决方案:
去掉#NameVirtualHost *:80前面的#号,然后重启apache即可。
- 解决[warn] _default_ VirtualHost overlap on port 80, the first has precedence问题
- 解决[warn] _default_ VirtualHost overlap on port 80, the first has precedence问题
- 解决 [warn] _default_ VirtualHost overlap on port 80, the first has precedence
- 基于域名的虚拟主机出现[warn] _default_ VirtualHost overlap on port 80, the first has precedence
- 解决:配置虚拟主机,重启apache,[warn] _default_ VirtualHost overlap on port 80, the first has precedence
- [warn] _default_ VirtualHost overlap on port 88, the first has precedence
- 关于Apache: [warn] _default_ VirtualHost overlap on port 80, the first has precedence Error and Solution的解决方案
- the first has precedence, perhaps you need a NameVirtualHost directive
- the first has precedence, perhaps you need a NameVirtualHost directive
- 解决The specified child already has a parent. You must call removeView() on the child's parent first问题
- The specified child already has a parent. You must call removeView() on the child's parent first.解决办
- The specified child already has a parent. You must call removeView() on the child's parent first.问解决
- spark解决报错WARN util.Utils: Service 'sparkWorker' could not bind on port 0. Attempting port 1.
- 问题:The specified child already has a parent. You must call removeView() on the child's parent first.
- The specified child already has a parent.You must call removeView() on the child's parent first问题
- The specified child already has a parent. You must call removeView() on the child's parent first问题
- 记:解决Namespace declaration statement has to be the very first statement in the script 错误
- 解决session 关闭问题 WARN - unclosed connection, forgot to call close() on your session?
- linux基础之教你如何查看linux版本
- Markdown语法学习笔记
- GO系列之加密
- ORA-01502:索引或这类索引的分区处于不可用状态
- ant example
- 解决[warn] _default_ VirtualHost overlap on port 80, the first has precedence问题
- DG2013SP1_1100U1.exe 与 ATEN 62US USB型多电脑切换器应用冲突
- sql server出生年月减去退休年月 计算年龄
- Please ensure that adb is correctly located at问题解决
- Sparsity and Some Basics of L1 Regularization
- delphi中资源的添加与解压
- 如何将BASE64编码的证书转换成C语言数组格式
- linux下svn客户端安装及环境配置
- c++与Python3互相调用