<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jean - 记录成长历程 &#187; apache</title>
	<atom:link href="http://www.zhangyiqun.net/tag/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zhangyiqun.net</link>
	<description>让世界更美好一点儿</description>
	<lastBuildDate>Wed, 07 Dec 2011 14:04:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>给apache编译加载模块</title>
		<link>http://www.zhangyiqun.net/1714.html</link>
		<comments>http://www.zhangyiqun.net/1714.html#comments</comments>
		<pubDate>Tue, 03 May 2011 14:27:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.net/?p=1714</guid>
		<description><![CDATA[以安装mod_rewrite为例 进入源码中包含模块的文件夹 cd src/httpd-2.0.64/modules/mappers 执行 # /usr/local/apache/bin/apxs -iac mod_rewrite.c 完事儿!<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache安装疑难记录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache错误信息隐藏</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache Rewrite过滤问号</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F339.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[转]Apache参数的优化 </font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>以安装mod_rewrite为例</p>
<p>进入源码中包含模块的文件夹<br />
cd src/httpd-2.0.64/modules/mappers</p>
<p>执行<br />
# /usr/local/apache/bin/apxs -iac mod_rewrite.c</p>
<p>完事儿!</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache安装疑难记录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache错误信息隐藏</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache Rewrite过滤问号</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F339.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[转]Apache参数的优化 </font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/1714.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Apache安装疑难记录</title>
		<link>http://www.zhangyiqun.net/1544.html</link>
		<comments>http://www.zhangyiqun.net/1544.html#comments</comments>
		<pubDate>Fri, 14 Jan 2011 14:44:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.net/?p=1544</guid>
		<description><![CDATA[有段日子没碰apache有点生疏了。以后每次遇到问题都到这篇日志里记录下。 为什么不识别php文件而日志也没有报错？ 检查是否在apache的httpd.conf中添加 LoadModule php5_module modules/libphp5.so DirectoryIndex index.php index.html AddType application/x-httpd-php .php<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache Rewrite过滤问号</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F336.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[转]Apache 2.x性能优化—MPM的选择与配置</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">给apache编译加载模块</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache错误信息隐藏</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>有段日子没碰apache有点生疏了。以后每次遇到问题都到这篇日志里记录下。</p>
<p>为什么不识别php文件而日志也没有报错？</p>
<p>检查是否在apache的httpd.conf中添加<br />
LoadModule php5_module   modules/libphp5.so<br />
DirectoryIndex index.php index.html<br />
AddType application/x-httpd-php .php </p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache Rewrite过滤问号</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F336.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[转]Apache 2.x性能优化—MPM的选择与配置</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">给apache编译加载模块</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache错误信息隐藏</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/1544.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache错误信息隐藏</title>
		<link>http://www.zhangyiqun.net/1154.html</link>
		<comments>http://www.zhangyiqun.net/1154.html#comments</comments>
		<pubDate>Sun, 27 Jun 2010 03:13:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.net/?p=1154</guid>
		<description><![CDATA[配置 ServerTokens ProductOnly ServerSignature Off 在debian系的linux中配置文件太过分散，修改的时候注意要改对地方，否则将没有任何效果。 参数详情 ServerTokens Setting Server Banner Header ProductOnly Server: Apache Major Server: Apache/2 Minor Server: Apache/2.0 Minimal Server: Apache/2.0.55 OS Server: Apache/2.0.55 (Debian) Full (or not specified) default Server: Apache/2.0.55 (Debian) PHP/5.1.2-1+b1 mod_ssl/2.0.55 OpenSSL/0.9.8b 扩展阅读： http://nohn.net/blog/view/id/removing_apache_server_header http://mediakey.dk/~cc/block-referer-spam/<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache安装疑难记录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache Rewrite过滤问号</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F779.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">apache如何限速？</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">给apache编译加载模块</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>配置</p>
<blockquote><p>ServerTokens ProductOnly<br />
ServerSignature Off</p></blockquote>
<p>在debian系的linux中配置文件太过分散，修改的时候注意要改对地方，否则将没有任何效果。</p>
<p><span id="more-1154"></span><br />
参数详情</p>
<table border="1" cellspacing="1" cellpadding="1" width="90%" align="left" summary="ServerTokens Directive Options">
<tbody>
<tr>
<td><strong>ServerTokens Setting</strong></td>
<td><strong>Server Banner Header</strong></td>
</tr>
<tr>
<td>ProductOnly</td>
<td>Server: Apache</td>
</tr>
<tr>
<td>Major</td>
<td>Server: Apache/2</td>
</tr>
<tr>
<td>Minor</td>
<td>Server: Apache/2.0</td>
</tr>
<tr>
<td>Minimal</td>
<td>Server: Apache/2.0.55</td>
</tr>
<tr>
<td>OS</td>
<td>Server: Apache/2.0.55 (Debian)</td>
</tr>
<tr>
<td>Full (or not specified) default</td>
<td>Server: Apache/2.0.55 (Debian) PHP/5.1.2-1+b1 mod_ssl/2.0.55 OpenSSL/0.9.8b</td>
</tr>
</tbody>
</table>
<p><br/><br />
扩展阅读：</p>
<p>http://nohn.net/blog/view/id/removing_apache_server_header</p>
<p>http://mediakey.dk/~cc/block-referer-spam/</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache安装疑难记录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache Rewrite过滤问号</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F779.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">apache如何限速？</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">给apache编译加载模块</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/1154.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache SSL配置</title>
		<link>http://www.zhangyiqun.net/1151.html</link>
		<comments>http://www.zhangyiqun.net/1151.html#comments</comments>
		<pubDate>Mon, 21 Jun 2010 12:53:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux系统]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.net/?p=1151</guid>
		<description><![CDATA[&#60;VirtualHost *:443&#62; ServerName www.zhangyiqun.net ServerAlias zhang.net DocumentRoot /xxx ErrorLog /xxx # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn #SSL SSLEngine on SSLCACertificateFile /etc/apache2/ca.txt SSLCertificateFile /etc/ssl/crt/www.vpn38.net.crt SSLCertificateKeyFile /etc/ssl/crt/private.key &#60;/VirtualHost&#62; 需要开启ssl模块，否则会出现ssl command not found之类的错误<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1151.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">给apache编译加载模块</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1151.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache安装疑难记录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1151.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache错误信息隐藏</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F781.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1151.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">如何解决apache目录列表乱码问题</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>&lt;VirtualHost *:443&gt;<br />
ServerName www.zhangyiqun.net<br />
ServerAlias zhang.net<br />
DocumentRoot /xxx</p>
<p>ErrorLog /xxx</p>
<p># Possible values include: debug, info, notice, warn, error, crit,<br />
# alert, emerg.<br />
LogLevel warn<br />
#SSL<br />
SSLEngine on<br />
SSLCACertificateFile /etc/apache2/ca.txt<br />
SSLCertificateFile /etc/ssl/crt/www.vpn38.net.crt<br />
SSLCertificateKeyFile /etc/ssl/crt/private.key<br />
&lt;/VirtualHost&gt;</p>
<p>需要开启ssl模块，否则会出现ssl command not found之类的错误</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1151.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">给apache编译加载模块</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1151.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache安装疑难记录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1151.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache错误信息隐藏</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F781.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1151.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">如何解决apache目录列表乱码问题</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/1151.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>urldecode编码转换字符集问题</title>
		<link>http://www.zhangyiqun.net/1069.html</link>
		<comments>http://www.zhangyiqun.net/1069.html#comments</comments>
		<pubDate>Mon, 29 Mar 2010 13:11:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux系统]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[基础]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.net/?p=1069</guid>
		<description><![CDATA[下午为凸墙调试支付宝接口，遇到了几个小问题 URL中的UTF-8&#8211;&#62;gb2312的转换 ?View Code PHP$urlname='Month/包月'; &#160; echo urlencode&#40;$urlname&#41;; &#160; echo iconv&#40;'utf-8','gb2312',urldecode&#40;'Month%2F%E5%8C%85%E6%9C%88'&#41;&#41;; Apache强制字符转换 关键在于配置中的“AddDefaultCharset UTF-8”这一行，这句的意思是所有的网页显示默认的编码都是“UTF-8”，其他编码要手动选择才能够正常显示，gb2312当然不例外。在这个约束下，即便在写网页程序时用Meta标示指定为GB2312也无济于事，因为apache已经有了明文强制要求。 开始我还以为是drupal代码中写了强制utf-8相关的语句所造成的<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F781.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1069.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">如何解决apache目录列表乱码问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1069.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache Rewrite过滤问号</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F779.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1069.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">apache如何限速？</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F336.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1069.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[转]Apache 2.x性能优化—MPM的选择与配置</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>下午为<a title="凸墙代理" href="http://www.vpn38.net" target="_blank">凸墙</a>调试支付宝接口，遇到了几个小问题</p>
<p>URL中的UTF-8&#8211;&gt;gb2312的转换</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1069code2'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p10692"><td class="code" id="p1069code2"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$urlname</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'Month/包月'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">echo</span> <a href="http://www.php.net/urlencode"><span style="color: #990000;">urlencode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$urlname</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">echo</span> <a href="http://www.php.net/iconv"><span style="color: #990000;">iconv</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'utf-8'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'gb2312'</span><span style="color: #339933;">,</span><a href="http://www.php.net/urldecode"><span style="color: #990000;">urldecode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Month%2F%E5%8C%85%E6%9C%88'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Apache强制字符转换</p>
<p>关键在于配置中的“AddDefaultCharset UTF-8”这一行，这句的意思是所有的网页显示默认的编码都是“UTF-8”，其他编码要手动选择才能够正常显示，gb2312当然不例外。在这个约束下，即便在写网页程序时用Meta标示指定为GB2312也无济于事，因为apache已经有了明文强制要求。</p>
<p>开始我还以为是drupal代码中写了强制utf-8相关的语句所造成的</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F781.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1069.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">如何解决apache目录列表乱码问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1069.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache Rewrite过滤问号</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F779.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1069.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">apache如何限速？</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F336.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F1069.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[转]Apache 2.x性能优化—MPM的选择与配置</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/1069.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[warn] _default_ VirtualHost overlap on port 80……</title>
		<link>http://www.zhangyiqun.net/910.html</link>
		<comments>http://www.zhangyiqun.net/910.html#comments</comments>
		<pubDate>Fri, 25 Dec 2009 15:38:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[基础]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.cn/?p=910</guid>
		<description><![CDATA[# httpd -S [Fri Dec 25 21:28:03 2009] [warn] _default_ VirtualHost overlap on port 80, the first has precedence # vi httpd.conf Add NameVirtualHost as follows: NameVirtualHost *:80 that&#8217;s all 原文连接 http://www.cyberciti.biz/faq/warn-_default_-virtualhost-overlap-port80-first-hasprecedence/<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F781.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F910.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">如何解决apache目录列表乱码问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F910.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache安装疑难记录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F910.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache错误信息隐藏</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F910.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">给apache编译加载模块</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p># httpd -S<br />
[Fri Dec 25 21:28:03 2009] [warn] _default_ VirtualHost overlap on port 80, the first has precedence</p>
<p><code># vi httpd.conf</code></p>
<p>Add NameVirtualHost as follows:</p>
<p><code>NameVirtualHost *:80</code></p>
<p>that&#8217;s all</p>
<p>原文连接 http://www.cyberciti.biz/faq/warn-_default_-virtualhost-overlap-port80-first-hasprecedence/</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F781.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F910.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">如何解决apache目录列表乱码问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F910.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache安装疑难记录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F910.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache错误信息隐藏</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F910.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">给apache编译加载模块</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/910.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>如何做Tomcat集群和session复制？</title>
		<link>http://www.zhangyiqun.net/870.html</link>
		<comments>http://www.zhangyiqun.net/870.html#comments</comments>
		<pubDate>Thu, 17 Dec 2009 08:50:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[集群]]></category>
		<category><![CDATA[高可用]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.cn/?p=870</guid>
		<description><![CDATA[CentOS release 5.2 (Final) # yum &#8211;disablerepo=* &#8211;enablerepo=c5-media install httpd # yum &#8211;disablerepo=* &#8211;enablerepo=c5-media install tomcat* 注意yum安装的顺序 # vim /etc/tomcat5/tomcat-users.xml &#60;user username=&#8221;ad&#8221; password=&#8221;123&#8243; roles=&#8221;admin,manager&#8221;/&#62; 修改后可测试管理界面 wget http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/source/tomcat-connectors-1.2.28-src.tar.gz #作用是无缝拼接apache与tomcat #tar zxvf tomcat-connectors-1.2.28-src.tar.gz # cat BUILD.txt # pwd /tmp/tomcat-connectors-1.2.28-src/native # ./configure &#8211;with-apxs=/usr/sbin/apxs # make &#38;&#38; make install # cd apache-2.0/ # apxs -i -n mod_jk mod_jk.so # [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F17.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F870.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">apache与tomcat整合</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F49.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F870.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[集群]详解LVS的工作模式之DR的实现</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F54.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F870.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[集群]基础</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F870.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache错误信息隐藏</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>CentOS release 5.2 (Final)</p>
<blockquote><p># yum &#8211;disablerepo=* &#8211;enablerepo=c5-media install httpd</p>
<p># yum &#8211;disablerepo=* &#8211;enablerepo=c5-media install tomcat*</p></blockquote>
<p>注意yum安装的顺序</p>
<blockquote><p># vim /etc/tomcat5/tomcat-users.xml</p>
<p>&lt;user username=&#8221;ad&#8221; password=&#8221;123&#8243; roles=&#8221;admin,manager&#8221;/&gt;</p></blockquote>
<p><span id="more-870"></span></p>
<p>修改后可测试管理界面</p>
<blockquote><p>wget http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/source/tomcat-connectors-1.2.28-src.tar.gz #作用是无缝拼接apache与tomcat</p>
<p>#tar zxvf tomcat-connectors-1.2.28-src.tar.gz</p>
<p># cat BUILD.txt</p>
<p># pwd<br />
/tmp/tomcat-connectors-1.2.28-src/native</p>
<p># ./configure &#8211;with-apxs=/usr/sbin/apxs</p>
<p># make &amp;&amp; make install</p></blockquote>
<blockquote><p># cd apache-2.0/</p>
<p># apxs -i -n mod_jk mod_jk.so</p>
<p># cd ../../conf/</p></blockquote>
<blockquote><p># cp workers.properties.minimal /etc/httpd/conf/workers.properties  #配置如何工作</p>
<p># vim /etc/httpd/conf.d/jk.conf</p>
<p># Load mod_jk module<br />
LoadModule jk_module modules/mod_jk.so<br />
# Where to find workers.properties<br />
JkWorkersFile conf/workers.properties<br />
# Where to put jk shared memory<br />
JkShmFile     logs/httpd/mod_jk.shm<br />
# Where to put jk logs<br />
JkLogFile logs/mod_jk.log<br />
# Set the jk log level [debug/error/info]<br />
JkLogLevel info<br />
# Select the log format<br />
JkLogStampFormat &#8220;[%a %b %d %H:%M:%S %Y] &#8221;<br />
# JkOptions indicate to send SSL KEY SIZE,<br />
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories<br />
# JkRequestLogFormat set the request format<br />
JkRequestLogFormat &#8220;%w %V %T %R&#8221;<br />
# All requests go to Tomcat by default<br />
JkMount   /*.jsp     wlb<br />
JkMount   /manager/*     wlb</p></blockquote>
<p>此时重启服务并打开localhost/index.jsp ，有内容则表示上一步成功。需要多少节点可根据需要在不同服务器重复上面操作。</p>
<p>如果上面没问题则可继续配置负载均衡集群</p>
<p>根据官方手册，集群前需先有一router机，所以先来配它</p>
<blockquote><p># vim /etc/httpd/conf/workers.properties</p></blockquote>
<blockquote><p># The advanced router LB worker<br />
worker.list=router,jkstatus</p>
<p># Define a &#8216;jkstatus&#8217; worker using status<br />
worker.jkstatus.type=status</p>
<p># Define a worker using ajp13<br />
worker.worker1.port=8009<br />
worker.worker1.host=node1.domain.org<br />
worker.worker1.type=ajp13<br />
worker.worker1.lbfactor=1<br />
# Define preferred failover node for worker1<br />
#worker.worker1.redirect=worker2</p>
<p># Define another worker using ajp13<br />
worker.worker2.port=8009<br />
worker.worker2.host=node2.domain.org<br />
worker.worker2.type=ajp13<br />
worker.worker2.lbfactor=1<br />
# Disable worker2 for all requests except failover<br />
#worker.worker2.activation=disabled</p>
<p># Define the LB worker<br />
worker.router.type=lb<br />
worker.router.balance_workers=worker1,worker2<br />
worker.router.sticky_session=1</p>
<p>重启router机访问jkstatus则可看到效果，截图如下</p></blockquote>
<p><a href="http://www.zhangyiqun.cn/wp-content/uploads/2009/12/tomcat.png" rel="lightbox[870]"><img class="alignnone" title="jkstatus" src="http://www.zhangyiqun.cn/wp-content/uploads/2009/12/tomcat.png" alt="" width="480" height="377" /></a></p>
<p>如果上一步没有问题，那么恭喜你，负载均衡集群已经实现了。现在来完成session复制，当然下面配置要在节点中完成</p>
<blockquote><p># vim /etc/tomcat5/server.xml</p></blockquote>
<p>注释：</p>
<blockquote><p>&lt;Engine name=&#8221;Catalina&#8221; defaultHost=&#8221;localhost&#8221;&gt;</p></blockquote>
<p>添加：</p>
<blockquote><p>&lt;Engine name=&#8221;Standalone&#8221; defaultHost=&#8221;localhost&#8221; jvmRoute=&#8221;节点主机名，如node1.domain.org&#8221;&gt;</p></blockquote>
<p>取消以下字段的注释令Cluster配置生效</p>
<p>&lt;Cluster className=&#8221;org.apache.catalina.cluster.tcp.SimpleTcpCluster&#8221;<br />
managerClassName=&#8221;org.apache.catalina.cluster.session.DeltaManager&#8221;<br />
expireSessionsOnShutdown=&#8221;false&#8221;<br />
useDirtyFlag=&#8221;true&#8221;<br />
notifyListenersOnReplication=&#8221;true&#8221;&gt;</p>
<p>&lt;Membership<br />
className=&#8221;org.apache.catalina.cluster.mcast.McastService&#8221;<br />
mcastAddr=&#8221;228.0.0.4&#8243; 组播地址<br />
mcastPort=&#8221;45564&#8243; 组播端口<br />
mcastFrequency=&#8221;500&#8243;<br />
mcastDropTime=&#8221;3000&#8243;/&gt;<br />
&lt;Receiver 指定网卡如何接收session信息<br />
className=&#8221;org.apache.catalina.cluster.tcp.ReplicationListener&#8221;<br />
tcpListenAddress=&#8221;网卡IP&#8221;<br />
tcpListenPort=&#8221;4001&#8243;<br />
tcpSelectorTimeout=&#8221;100&#8243;<br />
tcpThreadCount=&#8221;6&#8243;/&gt;</p>
<p>&lt;Sender<br />
className=&#8221;org.apache.catalina.cluster.tcp.ReplicationTransmitter&#8221;<br />
replicationMode=&#8221;pooled&#8221;<br />
ackTimeout=&#8221;15000&#8243;<br />
waitForAck=&#8221;true&#8221;/&gt;</p>
<p>&lt;Valve className=&#8221;org.apache.catalina.cluster.tcp.ReplicationValve&#8221;<br />
filter=&#8221;.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;&#8221;/&gt;</p>
<p>&lt;Deployer className=&#8221;org.apache.catalina.cluster.deploy.FarmWarDeployer&#8221;<br />
tempDir=&#8221;/tmp/war-temp/&#8221;<br />
deployDir=&#8221;/tmp/war-deploy/&#8221;<br />
watchDir=&#8221;/tmp/war-listen/&#8221;<br />
watchEnabled=&#8221;false&#8221;/&gt;</p>
<p>&lt;ClusterListener className=&#8221;org.apache.catalina.cluster.session.ClusterSessionListener&#8221;/&gt;<br />
&lt;/Cluster&gt;</p>
<p><strong>这么长的一段配置看起来确实很恐怖，但是呢需要改的就几处而已，莫慌</strong></p>
<p>接下来为使组播方式生效，增加路由项目</p>
<blockquote><p>#ip ro add 228.0.0.4 dev eth0</p></blockquote>
<p>重启tomcat，之后验证下tomcat工作是否正常，组播是否正常？</p>
<p># tcpdump -i eth0 not port 22<br />
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode<br />
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes<br />
16:02:47.252607 IP node1.domain.org.45564 &gt; 228.0.0.4.45564: UDP, length 57<br />
16:02:47.756454 IP node1.domain.org.45564 &gt; 228.0.0.4.45564: UDP, length 57<br />
16:02:48.257428 IP node1.domain.org.45564 &gt; 228.0.0.4.45564: UDP, length 57<br />
16:02:48.759068 IP node1.domain.org.45564 &gt; 228.0.0.4.45564: UDP, length 57</p>
<p>在webapps 下新建test 目录<br />
进入test目录下建WEB-INF目录下的web.xml文件，为了防止格式被破坏其代码在</p>
<p>http://docs.google.com/Doc?docid=0Ae1ODIVF3AfNZGRyaGtmam5fMTUwZDdoOGhxY3A&#038;hl=en</p>
<p>再在webapps 下 建立session.jsp</p>
<p>session.jsp的代码也在上面的链接中</p>
<p>此时进入网页手动写一个session，然后关掉当前正在访问节点的tomcat服务并刷新网页，此时session未变。</p>
<p>http://192.168.56.103/test/session.jsp</p>
<p>至此session复制完成。</p>
<p>如有任何疑问在本页面留言即可。</p>
<p>参考文章</p>
<p>http://bbs.linuxtone.org/viewthread.php?tid=1195&#038;highlight=tomcat</p>
<p>http://blind.javaeye.com/blog/527921</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F17.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F870.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">apache与tomcat整合</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F49.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F870.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[集群]详解LVS的工作模式之DR的实现</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F54.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F870.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[集群]基础</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F870.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache错误信息隐藏</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/870.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何解决apache目录列表乱码问题</title>
		<link>http://www.zhangyiqun.net/781.html</link>
		<comments>http://www.zhangyiqun.net/781.html#comments</comments>
		<pubDate>Fri, 20 Nov 2009 12:04:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux系统]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[基础]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.cn/?p=781</guid>
		<description><![CDATA[IndexOptions Charset=GB2312 详情参见 http://alexpress.blog.163.com/blog/static/10718752008115798918/<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F781.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache安装疑难记录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F781.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">给apache编译加载模块</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F779.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F781.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">apache如何限速？</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F336.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F781.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[转]Apache 2.x性能优化—MPM的选择与配置</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: x-large;"><strong>IndexOptions Charset=GB2312</strong></span></p>
<p>详情参见</p>
<p>http://alexpress.blog.163.com/blog/static/10718752008115798918/</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F781.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache安装疑难记录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F781.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">给apache编译加载模块</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F779.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F781.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">apache如何限速？</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F336.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F781.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[转]Apache 2.x性能优化—MPM的选择与配置</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/781.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apache如何限速？</title>
		<link>http://www.zhangyiqun.net/779.html</link>
		<comments>http://www.zhangyiqun.net/779.html#comments</comments>
		<pubDate>Thu, 19 Nov 2009 12:29:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.cn/?p=779</guid>
		<description><![CDATA[先去下模块 http://codee.pl/cband.html #tar zxvf mod-cband-0.9.7.5.tgz #cd mod-cband-0.9.7.5 #./configure &#8211;with-apxs=/usr/local/apache/bin/apxs /*with-apxs必须手动指，不然会找不着编译失败 #make #make install 安装完成，会自在httpd.conf文件中写一行: LoadModule cband_module libexec/apache22/mod_cband.so, 模块路径由apxs指定，如果make install 将要完成，写入httpd.conf出错时，只要正确成生 mod_cband.so也可以手工把LoadModule cband_module libexec/apache22/mod_cband.so写入到httpd.conf文件中。 下面这两个location是c-band的统计页面，也需要写到httpd.conf文件中，这个编译时不会自己写入的，如果不加这两段将无法浏览器中看到实时的控制流量。 虚拟主机设置: 在之间加入 CBandRemoteSpeed 80Kb/s 3 10 限制来自远端访问速度80kB每秒，3个请求每秒，10个连接。 CBandSpeed 1024 10 30 限制此虚拟主机最高访问速度1024kbps 限制此虚拟主机每秒最高接受请求数10个 限制此虚拟主机最高并发连接30个 本文参考了 http://olda.blog.163.com/blog/static/2628510200981452759912/ http://codee.pl/cband_documentation.html<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F779.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache错误信息隐藏</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F779.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">给apache编译加载模块</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F779.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache Rewrite过滤问号</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F779.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache安装疑难记录</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>先去下模块 http://codee.pl/cband.html</p>
<p>#tar zxvf mod-cband-0.9.7.5.tgz</p>
<p>#cd mod-cband-0.9.7.5</p>
<p>#./configure &#8211;with-apxs=/usr/local/apache/bin/apxs  /*with-apxs必须手动指，不然会找不着编译失败</p>
<p>#make</p>
<p>#make install</p>
<p><span id="more-779"></span></p>
<p>安装完成，会自在httpd.conf文件中写一行:</p>
<p>LoadModule   cband_module       libexec/apache22/mod_cband.so,</p>
<p>模块路径由apxs指定，如果make install 将要完成，写入httpd.conf出错时，只要正确成生 mod_cband.so也可以手工把LoadModule cband_module       libexec/apache22/mod_cband.so写入到httpd.conf文件中。</p>
<p>下面这两个location是c-band的统计页面，也需要写到httpd.conf文件中，这个编译时不会自己写入的，如果不加这两段将无法浏览器中看到实时的控制流量。</p>
<p>虚拟主机设置:</p>
<p>在之间加入</p>
<p>CBandRemoteSpeed 80Kb/s  3 10</p>
<p>限制来自远端访问速度80kB每秒，3个请求每秒，10个连接。</p>
<p>CBandSpeed 1024 10 30</p>
<p>限制此虚拟主机最高访问速度1024kbps<br />
限制此虚拟主机每秒最高接受请求数10个<br />
限制此虚拟主机最高并发连接30个</p>
<p>本文参考了</p>
<p>http://olda.blog.163.com/blog/static/2628510200981452759912/</p>
<p>http://codee.pl/cband_documentation.html</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F779.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache错误信息隐藏</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1714.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F779.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">给apache编译加载模块</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F779.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache Rewrite过滤问号</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F779.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache安装疑难记录</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/779.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache Rewrite过滤问号</title>
		<link>http://www.zhangyiqun.net/646.html</link>
		<comments>http://www.zhangyiqun.net/646.html#comments</comments>
		<pubDate>Tue, 01 Sep 2009 15:59:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[工作笔记]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://www.zhangyiqun.cn/?p=646</guid>
		<description><![CDATA[需求 旧链接：http://www.xxx.com/Lottery06/SSQ7LC/index.php?LotteryType=SSQ 做301永久重定向 到新链接：http://www.xxx.com/Lottery06/SSQ7LC/ 我的写法是（目前还没成功） RewriteCond %{REQUEST_URI} ^/Lottery06/SSQ7LC/(.*)$ [NC] RewriteCond %{QUERY_STRING} ^LotteryType=SSQ$ [NC] RewriteRule ^(.*)$  http://www.xxx.com/Lottery06/SSQ7LC/ [R=301,L,QSA] 遇到的问题是 cond可以把LotteryType=SSQ过滤出来，但是无法过滤掉，这里非常不解 乔楚的写法 RewriteCond %{REQUEST_URI} ^/Lottery06/SSQ7LC/index\.php$ [NC] RewriteCond %{QUERY_STRING} ^(LotteryType=SSQ)$ [NC] RewriteRule (.*) http://www.baidu.com/s?wd=$1\?%1 [R=301,L] 经乔大师本人测试成功了，我放到服务器仍然是只能过滤出却过滤不掉。 服务器变量 $_SERVER存储当前服务器信息，其中有几个值如$_SERVER["QUERY_STRING"]，$_SERVER["REQUEST_URI"]，$_SERVER["SCRIPT_NAME"]和$_SERVER["PHP_SELF"]常常容易混淆，以下通过实例详解$_SERVER函数中QUERY_STRING，REQUEST_URI，SCRIPT_NAME和PHP_SELF变量区别，掌握这四者之间的关系，便于在实际应用中正确获取所需要的值，供参考。 1，$_SERVER["QUERY_STRING"] 说明：查询(query)的字符串 2，$_SERVER["REQUEST_URI"] 说明：访问此页面所需的URI 3，$_SERVER["SCRIPT_NAME"] 说明：包含当前脚本的路径 4，$_SERVER["PHP_SELF"] 说明：当前正在执行脚本的文件名 实例： 1，http://www.zhangyiqun.cn (直接打开主页) 结果： $_SERVER["QUERY_STRING"] = &#8220;&#8221; $_SERVER["REQUEST_URI"] = &#8220;/&#8221; $_SERVER["SCRIPT_NAME"] = [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F779.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">apache如何限速？</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache安装疑难记录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache错误信息隐藏</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1151.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache SSL配置</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>需求</p>
<p>旧链接：http://www.xxx.com/Lottery06/SSQ7LC/index.php?LotteryType=SSQ</p>
<p>做301永久重定向</p>
<p>到新链接：http://www.xxx.com/Lottery06/SSQ7LC/</p>
<p>我的写法是（目前还没成功）</p>
<p>RewriteCond %{REQUEST_URI} ^/Lottery06/SSQ7LC/(.*)$ [NC]</p>
<p>RewriteCond %{QUERY_STRING} ^LotteryType=SSQ$ [NC]</p>
<p>RewriteRule ^(.*)$  http://www.xxx.com/Lottery06/SSQ7LC/ [R=301,L,QSA]</p>
<p>遇到的问题是<br />
<span id="more-646"></span><br />
cond可以把LotteryType=SSQ过滤出来，但是无法过滤掉，这里非常不解</p>
<p>乔楚的写法</p>
<p><span style="color: #000000; font-family: Microsoft YaHei;">RewriteCond  %{REQUEST_URI} ^/Lottery06/SSQ7LC/index\.php$ [NC] </span></p>
<p><span style="color: #000000; font-family: Microsoft YaHei;">RewriteCond %{QUERY_STRING}  ^(LotteryType=SSQ)$ [NC] </span></p>
<p><span style="color: #000000; font-family: Microsoft YaHei;">RewriteRule (.*) http://www.baidu.com/s?wd=$1\?%1  [R=301,L] </span></p>
<div>
<div>经乔大师本人测试成功了，我放到服务器仍然是只能过滤出却过滤不掉。</div>
<div></div>
<div>服务器变量</div>
<div>$_SERVER存储当前服务器信息，其中有几个值如$_SERVER["QUERY_STRING"]，$_SERVER["REQUEST_URI"]，$_SERVER["SCRIPT_NAME"]和$_SERVER["PHP_SELF"]常常容易混淆，以下通过实例详解$_SERVER函数中QUERY_STRING，REQUEST_URI，SCRIPT_NAME和PHP_SELF变量区别，掌握这四者之间的关系，便于在实际应用中正确获取所需要的值，供参考。</div>
<div>1，$_SERVER["QUERY_STRING"]</div>
<div>说明：查询(query)的字符串</div>
<div>2，$_SERVER["REQUEST_URI"]</div>
<div>说明：访问此页面所需的URI</div>
<div>3，$_SERVER["SCRIPT_NAME"]</div>
<div>说明：包含当前脚本的路径</div>
<div>4，$_SERVER["PHP_SELF"]</div>
<div>说明：当前正在执行脚本的文件名</div>
<div>实例：</div>
<div>1，http://www.zhangyiqun.cn (直接打开主页)</div>
<div>结果：</div>
<div>$_SERVER["QUERY_STRING"] = &#8220;&#8221;</div>
<div>$_SERVER["REQUEST_URI"] = &#8220;/&#8221;</div>
<div>$_SERVER["SCRIPT_NAME"] = &#8220;/index.php&#8221;</div>
<div>$_SERVER["PHP_SELF"]     = &#8220;/index.php&#8221;</div>
<div>2，http://www.zhangyiqun.cn/?p=222 (附带查询)</div>
<div>结果：</div>
<div>$_SERVER["QUERY_STRING"] = &#8220;p=222&#8243;</div>
<div>$_SERVER["REQUEST_URI"] = &#8220;/?p=222&#8243;</div>
<div>$_SERVER["SCRIPT_NAME"] = &#8220;/index.php&#8221;</div>
<div>$_SERVER["PHP_SELF"]     = &#8220;/index.php&#8221;</div>
<div>3，http://www.zhangyiqun.cn/index.php?p=222&amp;q=biuuu</div>
<div>结果：</div>
<div>$_SERVER["QUERY_STRING"] = &#8220;p=222&amp;q=biuuu&#8221;</div>
<div>$_SERVER["REQUEST_URI"] = &#8220;/index.php?p=222&amp;q=biuuu&#8221;</div>
<div>$_SERVER["SCRIPT_NAME"] = &#8220;/index.php&#8221;</div>
<div>$_SERVER["PHP_SELF"]     = &#8220;/index.php&#8221;</div>
<div>$_SERVER["QUERY_STRING"]获取查询语句，实例中可知，获取的是?后面的值</div>
<div>$_SERVER["REQUEST_URI"] 获取http://www.zhangyiqun.cn后面的值，包括/</div>
<div>$_SERVER["SCRIPT_NAME"] 获取当前脚本的路径，如：index.php</div>
<div>$_SERVER["PHP_SELF"] 当前正在执行脚本的文件名</div>
<div>总结一下，对于QUERY_STRING，REQUEST_URI，SCRIPT_NAME和PHP_SELF，深入了解将有利于我们在$_SERVER函数中正确调用这四个值。通过实例详解$_SERVER函数中QUERY_STRING，REQUEST_URI，SCRIPT_NAME和PHP_SELF掌握四个变量之间的区别。</div>
</div>
<p style="margin:0;padding:0;height:1px;overflow:hidden;">
    <script type="text/javascript"><!--
        var wumiiSitePrefix = "http://www.zhangyiqun.net";
        var wumiiEnableCustomPos = false;
        var wumiiParams = "&#038;num=4&#038;mode=3&#038;displayInFeed=1&#038;version=1.0.5.5&#038;pf=WordPress3.2.1";
    //--></script><script type="text/javascript" src="http://widget.wumii.com/ext/relatedItemsWidget.htm"></script><a href="http://www.wumii.com/widget/relatedItems.htm" style="border:0;"><img src="http://static.wumii.com/images/pixel.png" alt="无觅相关文章插件，快速提升流量" style="border:0;padding:0;margin:0;" /></a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F779.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">apache如何限速？</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1544.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache安装疑难记录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1154.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache错误信息隐藏</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhangyiqun.net%2F1151.html&from=http%3A%2F%2Fwww.zhangyiqun.net%2F646.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache SSL配置</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.zhangyiqun.net/646.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: www.zhangyiqun.net @ 2012-02-07 22:48:41 -->
