<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[[实践OK]解决[warn] _default_ VirtualHost overlap on port 80, the first has precedence问题 ]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Web服务器]]></category>
<pubDate>Wed, 24 Jun 2015 08:55:07 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	问题背景：有多个虚拟机的时候，发现在httpd.conf里注释了该文件：D:&#92;wamp&#92;bin&#92;apache&#92;apache2.2.22&#92;conf&#92;extra&#92;httpd-vhosts.conf ，出现一堆的[warn] _default_ VirtualHost overlap on port 80, the first has precedence ，于是，对于apache启动时的警告，把http.conf里的：去掉#NameVirtualHost *:80前面的#号，然后重启apache即可。把那个包含的没有用的文件干掉即可。（其实际就是：httpd-vhosts.conf 里因为有这样一行 NameVirtualHost *:80，而httpd.conf里没有或给注释了导致的，而后面的虚拟机默认沿用这个....。）<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在apache2的httpd.conf里新增加了1个VirtualHost，域名是www.ligh.com，此时，服务器总共2个VirtualHost ，apachectl restart的时候却出现了下面的警告提示：<br/>[warn] _default_ VirtualHost overlap on port 80, the first has precedence<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;大概意思就是说后面新增加的这个VirtualHost 由于端口被占用，不能生效，沿用第一个虚拟主机的配置。<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;检查了一下，发现原来在httpd.conf里，我没有把#NameVirtualHost *:80前的注释去掉，导致这个没有生效。<br/>解决方案：<br/>去掉#NameVirtualHost *:80前面的#号，然后重启apache即可。<br/>来自：http://blog.163.com/lgh_2002/blog/static/44017526201141711451919/
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]解决[warn] _default_ VirtualHost overlap on port 80, the first has precedence问题 ]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>