<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[apache反向代理设置]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[服务器技术]]></category>
<pubDate>Tue, 24 Oct 2006 03:06:02 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	首先下载apache 源文件。2.0.54即可。<br/><br/> &nbsp; &nbsp;编译的时候加上如下参数： <br/> &nbsp; &nbsp; &nbsp;./configure --prefix=/usr/local/apache2 <br/> &nbsp; &nbsp; &nbsp;--enable-rewrite=shared <br/> &nbsp; &nbsp; &nbsp;--enable-proxy=shared<br/><br/> &nbsp; &nbsp; 其中：prefix是安装目录；enable-rewrite 和 enable-proxy分别是启用了url重写和代理功能<br/><br/> &nbsp; &nbsp; 在httpd.conf文件中加入如下代码：<br/> &nbsp; &nbsp; ServerName map.sdta.cn<br/> &nbsp; &nbsp; ErrorLog /usr/local/logs/httpd-error_log<br/> &nbsp; &nbsp; TransferLog /usr/local/logs/httpd-access_log<br/> &nbsp; &nbsp; RewriteEngine on<br/> &nbsp; &nbsp; #ProxyRequestes off<br/> &nbsp; &nbsp; #UseCanonicalName off<br/> &nbsp; &nbsp; RewriteRule ^/(.*)$ <a href="http://192.168.0.1:7001/$1" target="_blank">http://192.168.0.1:7001/$1</a> [P,L]<br/> &nbsp; &nbsp; 即可将所有请求转发至192.168.0.1：7001上<br/><br/><br/><br/>Tags - <a href="http://www.dzhope.com/tags/apache/" rel="tag">apache</a> , <a href="http://www.dzhope.com/tags/%25E5%258F%258D%25E5%2590%2591%25E4%25BB%25A3%25E7%2590%2586/" rel="tag">反向代理</a>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] apache反向代理设置]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>