<?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>CODIGG &#187; proxy</title>
	<atom:link href="http://www.codigg.com/tag/proxy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codigg.com</link>
	<description>关注互联网，关注云计算，关注生活</description>
	<lastBuildDate>Fri, 08 Jul 2011 02:48:15 +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>proxy server后的apache如何获取用户真实IP</title>
		<link>http://www.codigg.com/2009/09/proxy-server-real-ip-lighttpd-apache/</link>
		<comments>http://www.codigg.com/2009/09/proxy-server-real-ip-lighttpd-apache/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 08:14:07 +0000</pubDate>
		<dc:creator>Codigg</dc:creator>
				<category><![CDATA[Linux/Server]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://www.codigg.com/?p=460</guid>
		<description><![CDATA[本文代码在SuSE/Ubuntu下测试通过（包括32位和64位），如果看完本文解决不了你的问题，请用google搜素关键字：AddAcceptForwarder

用lighttpd做proxy server，来对多个apache做负载均衡已经是很常见的做法了。但是默认情况下，apache日志中获不到访问者的真实IP，对于分析日志带来一定困难，最简单的方法是使用mod_extract_forwarded2。

安装编译脚本如下（apxs2需要先安装apache2-devel）：



?View Code BASHmkdir mod_extract_forwarded2

<span class="readmore"><a href="http://www.codigg.com/2009/09/proxy-server-real-ip-lighttpd-apache/" title="proxy server后的apache如何获取用户真实IP">阅读全文——共722字</a></span><h3>相关文章</h3><ul><li><a href="http://www.codigg.com/2010/03/web-server-header-apache-lighttpd-nginx/" title="伪装WEB服务器(apache/lighttpd/nginx) 2010.03.20">伪装WEB服务器(apache/lighttpd/nginx)</a>(11)</li>
<li><a href="http://www.codigg.com/2010/04/lighttpd-expect-100-417-continue/" title="lighttpd不支持Expect: 100-continue的解决办法 2010.04.13">lighttpd不支持Expect: 100-continue的解决办法</a>(67)</li>
</ul><h3>最近评论</h3><ul><li><a class="commentor" href="http://www.webspawner.com/users/ahanelwallet/index.html" >chanel wallet</a> : <a class="comment_content" href="http://www.codigg.com/2009/09/proxy-server-real-ip-lighttpd-apache/#comment-213819" title="View the entire comment by chanel wallet" >UGG shorts boots are here to stay ugg boots From u...</a></li>
<li><a class="commentor" href="http://uggsadirondacktall.yolasite.com/" >uggs adirondack tall</a> : <a class="comment_content" href="http://www.codigg.com/2009/09/proxy-server-real-ip-lighttpd-apache/#comment-213260" title="View the entire comment by uggs adirondack tall" >The appear of the vibrant coloured traditional bri...</a></li>
<li><a class="commentor" href="http://paganpodcastforums.com/forums/member.php?action=profile&amp;uid=1321" >Clarence Janower</a> : <a class="comment_content" href="http://www.codigg.com/2009/09/proxy-server-real-ip-lighttpd-apache/#comment-212744" title="View the entire comment by Clarence Janower" >I am so happy to read this. This is the kind of ma...</a></li>
<li><a class="commentor" href="http://www.graphicbomb.com" >Stewart Rushdan</a> : <a class="comment_content" href="http://www.codigg.com/2009/09/proxy-server-real-ip-lighttpd-apache/#comment-212697" title="View the entire comment by Stewart Rushdan" >My favorite city out of all of them, no doubt abou...</a></li>
<li><a class="commentor" href="http://dandroidappe.blogspot.com/2012/01/jelly-defense-infinite-dreams-apk.html" >jelly defense apk download</a> : <a class="comment_content" href="http://www.codigg.com/2009/09/proxy-server-real-ip-lighttpd-apache/#comment-212607" title="View the entire comment by jelly defense apk download" >proxy serveråŽçš„apacheå¦‚ä½•èŽ·å–ç”¨æˆ·çœŸå®žIP...</a></li>
</ul>]]></description>
		<wfw:commentRss>http://www.codigg.com/2009/09/proxy-server-real-ip-lighttpd-apache/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>

