在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前的注释去掉,导致这个没有生效。
去掉#之后restart,问题解决,如果有https,则总体修改为
NameVirtualHost *:80
NameVirtualHost *:433
Linux系统重启apache出现:
[root@localhost conf]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Wed Jul 16 06:52:43 2008] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Wed Jul 16 06:52:43 2008] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Wed Jul 16 06:52:43 2008] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Wed Jul 16 06:52:43 2008] [warn] NameVirtualHost 124.254.31.4:80 has no VirtualHosts
Stopping httpd: [ OK ]
Starting httpd: [Wed Jul 16 06:52:43 2008] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Wed Jul 16 06:52:43 2008] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Wed Jul 16 06:52:43 2008] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Wed Jul 16 06:52:43 2008] [warn] NameVirtualHost 124.254.31.4:80 has no VirtualHosts
看上面提示,发现了,apache虚拟主机出问题,警告:默认监听端口80上有重叠,在我们正常配置虚拟主机时,linux系统配置,XXX.conf 虚拟配置文件,一般都是默认访问在第一个站,表明虚拟主机没配置好。
解决方法:
编辑虚拟主机配置文件,改两处地方就可以了。
1.一处
NameVirtualHost *:80
2.二处
<VirtualHost *:80>
DocumentRoot /home/wwwroot/
ServerName xxx.com
<VirtualHost *:80>
DocumentRoot /home/wwwroot/
ServerName xxx.com
[root@localhost conf]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
相关推荐
SP_M_WARN_CREDIT_CALC_SNS.prc
Proc_Warn_Class.sql
Proc_Warn_Dep.sql
Proc_Warn_All.sql
python库。 资源全名:warn_transformer-0.0.7-py3-none-any.whl
主要为大家详细介绍了解决Python出现'_warn_unsafe_extraction'问题的方法,感兴趣的小伙伴们可以参考一下
GlowingObjectOutlines-master_GlowingObject_Master_warn7ck_zip_源码.zip
BERT_SA_Corona_Warn_App 该存储库包含数据和一个笔记本,用于使用BERT变压器模型进行情感分析,以分析德语“ Corona Warn App”上的评论数据。 建议代码在GPU上运行
主要介绍了nginx: [warn] "log_format" directive used only on "http" level 解决方法,需要的朋友可以参考下
Boolean flags can be turned on using the values 1, On, True or Yes. ; They can be turned off using the values 0, Off, False or No. ; An empty string can be denoted by simply not writing anything ...
the Switch() operator is within a while loop, causing an error on the second iteration. (BZ 460) Disassembler - fix for error emitted for unknown type for target of scope operator. Now, ignore it and...
####操作系统口令加固#### sed -i '/^PASS_MAX_DAYS[:space:]*[:digit:]*/c\PASS_MAX_DAYS\t90' /etc/...sed -i '/^PASS_WARN_AGE[:space:]*[:digit:]*/c\PASS_WARN_AGE\t7' /etc/login.defs chmod 600 /etc/login.defs
GlowingObject_Master....
SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO ALTER PROCEDURE test @From varchar(100)="zhang.zhanling@itgemini.net" , @To varchar(100)="zhang.zhanling@itgemini.net" ,@eng varchar(1000)=" ", ...
本spawn-fcgi在标准版本基础上实现了对子进程的守护和监控,当有子进程挂掉的时候会重新拉一个子进程,这样就解决了原有spawn-fcgi的一个弊端:即spawn-fcgi在启动了子进程后就直接退出了,这时候如果子进程都挂掉...
nginx: [warn] the “log_format” directive may be used only on “http” level 上网搜索解决方案如下: 将/vhost/xxx.conf里server段里的下面代码移出该server段即可。 但是这样的又会产生一个问题,就是各子...
OpenMP并行计算理论书籍,Rohit Chandra等人编写。
V4L2_FIELD_NONE,//default format, can be changed by s_fmt sizeof(struct vfe_buffer), dev,NULL); ret = sysfs_create_group(&dev->pdev->dev.kobj, &vfe_attribute_group); #ifdef CONFIG_ES dev->...