<?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>LiangXu Wang &#187; proxy</title>
	<atom:link href="http://wlx.westgis.ac.cn/tag/proxy/feed/" rel="self" type="application/rss+xml" />
	<link>http://wlx.westgis.ac.cn</link>
	<description>research of gis, rs, opensource.</description>
	<lastBuildDate>Wed, 28 Jul 2010 17:08:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>另类反向代理DNN4</title>
		<link>http://wlx.westgis.ac.cn/609/</link>
		<comments>http://wlx.westgis.ac.cn/609/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 02:27:53 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[dnn]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[reverse proxy]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=609</guid>
		<description><![CDATA[之前在反向代理DNN4时一直有问题（DNN4通过HEADER进行重定向，导致无法使用基于内部域名的反向代理）
在这儿找到一个办法：
http://www.r2integrated.com/dnn/Forum/tabid/170/aff/1/aft/9187/afv/topic/afpg/1/Default.aspx
在代理服务器上：
/etc/hosts中添加一个解析：192.168.50.238 heihe.westgis.ac.cn
在apahce中配置：
ServerName heihe.westgis.ac.cn
ProxyPass / http://heihe.westgis.ac.cn/
ProxyPassReverse / http://heihe.westgis.ac.cn/
...
在虚拟机上配置：
\windows\system32\drivers\etc\hosts中添加一行：192.168.50.238 heihe.westgis.ac.cn
重启对应服务，搞定！
]]></description>
			<content:encoded><![CDATA[<p>之前在反向代理DNN4时一直有问题（DNN4通过HEADER进行重定向，导致无法使用基于内部域名的反向代理）<br />
在这儿找到一个办法：<br />
<a href="http://www.r2integrated.com/dnn/Forum/tabid/170/aff/1/aft/9187/afv/topic/afpg/1/Default.aspx">http://www.r2integrated.com/dnn/Forum/tabid/170/aff/1/aft/9187/afv/topic/afpg/1/Default.aspx</a><br />
在代理服务器上：<br />
/etc/hosts中添加一个解析：192.168.50.238 heihe.westgis.ac.cn<br />
在apahce中配置：<br />
ServerName heihe.westgis.ac.cn<br />
ProxyPass / http://heihe.westgis.ac.cn/<br />
ProxyPassReverse / http://heihe.westgis.ac.cn/<br />
...</p>
<p>在虚拟机上配置：<br />
\windows\system32\drivers\etc\hosts中添加一行：192.168.50.238 heihe.westgis.ac.cn</p>
<p>重启对应服务，搞定！</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/609/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apache2反向代理</title>
		<link>http://wlx.westgis.ac.cn/271/</link>
		<comments>http://wlx.westgis.ac.cn/271/#comments</comments>
		<pubDate>Mon, 16 Oct 2006 09:09:51 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[反向代理]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/271/</guid>
		<description><![CDATA[在DEBIAN下使用apache2的反向代理，连接到一台内部服务器上。
首先要激活proxy模块：
sudo a2enmod
选择proxy
sudo mkdir /var/www/proxy
sudo chown www-data:www-data /var/www/proxy
然后修改对应的sites：
&#60;VirtualHost *&#62;
        ServerAdmin xxx@xxx.org
        ServerName xxxxx
 ProxyRequests Off
&#60;Proxy *&#62;
Order allow,deny
Allow from all
&#60;/Proxy&#62;
# reverse proxy setting
ProxyPass / http://192.168.100.8:8180/
ProxyPassReverse / http://192.168.100.8:8180/
# cache dir root
CacheRoot "/var/www/proxy"
# max cache storage
CacheSize 50000000
# hour: every 4 hour
CacheGcInterval 4
# max page expire [...]]]></description>
			<content:encoded><![CDATA[<p>在DEBIAN下使用apache2的反向代理，连接到一台内部服务器上。<br />
首先要激活proxy模块：<br />
sudo a2enmod<br />
选择proxy<br />
sudo mkdir /var/www/proxy<br />
sudo chown www-data:www-data /var/www/proxy<br />
然后修改对应的sites：</p>
<blockquote><p><code>&lt;VirtualHost *&gt;<br />
        ServerAdmin xxx@xxx.org<br />
        ServerName xxxxx<br />
 ProxyRequests Off<br />
&lt;Proxy *&gt;<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Proxy&gt;<br />
# reverse proxy setting<br />
ProxyPass / http://192.168.100.8:8180/<br />
ProxyPassReverse / http://192.168.100.8:8180/<br />
# cache dir root<br />
CacheRoot "/var/www/proxy"<br />
# max cache storage<br />
CacheSize 50000000<br />
# hour: every 4 hour<br />
CacheGcInterval 4<br />
# max page expire time: hour<br />
CacheMaxExpire 240<br />
# Expire time = (now - last_modified) * CacheLastModifiedFactor<br />
CacheLastModifiedFactor 0.1<br />
# defalt expire tag: hour<br />
CacheDefaultExpire 1<br />
# force complete after precent of content retrived: 60-90%<br />
CacheForceCompletion 80</p>
<p>        ErrorLog /var/log/apache2/error-westdc.geodata.cn.log<br />
        CustomLog /var/log/apache2/access-westdc.geodata.cn.log combined<br />
        ServerSignature On</p>
<p>&lt;/VirtualHost&gt;</code></p></blockquote>
<p>参考： http://www.chedong.com/tech/cache.html</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/271/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
