<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: squid后面的lighttpd日志记录用户ip的方法</title>
	<atom:link href="http://www.toplee.com/blog/348.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.toplee.com/blog/348.html</link>
	<description>活到老，学到老 ...   @ IT，业界，互联网</description>
	<lastBuildDate>Thu, 29 Jul 2010 06:41:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Michael</title>
		<link>http://www.toplee.com/blog/348.html/comment-page-1#comment-30237</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 15 Oct 2008 23:25:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/archives/348.html#comment-30237</guid>
		<description>谢谢，说得很好 :)</description>
		<content:encoded><![CDATA[<p>谢谢，说得很好 <img src='http://www.toplee.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suchasplus</title>
		<link>http://www.toplee.com/blog/348.html/comment-page-1#comment-30235</link>
		<dc:creator>suchasplus</dc:creator>
		<pubDate>Wed, 15 Oct 2008 08:13:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/archives/348.html#comment-30235</guid>
		<description>[Comment ID #30234 Will Be Quoted Here]
严格来说, X-Forwarded-For header的值不能完全信任..Lighttpd的extforword可以限定来源地址，对非信任地址直接记录成127.0.0.1
当初测试端口转发的时候发现sina的后端apache都限定了来源地址，必须从前端squid走</description>
		<content:encoded><![CDATA[<blockquote class='comment_quote'><p><a href="http://www.toplee.com/blog/348.html#comment-30234" title="Click here to view the original comment"><em>suchasplus on October 15, 2008 at 4:02 pm said:</em></a></p>
<p>呵呵<br />
楼主的方法不错<br />
不过还有一个官方方法，不需要修改accesslog.format<br />
启用m&#8230;</p></blockquote>
<p>严格来说, X-Forwarded-For header的值不能完全信任..Lighttpd的extforword可以限定来源地址，对非信任地址直接记录成127.0.0.1<br />
当初测试端口转发的时候发现sina的后端apache都限定了来源地址，必须从前端squid走</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suchasplus</title>
		<link>http://www.toplee.com/blog/348.html/comment-page-1#comment-30234</link>
		<dc:creator>suchasplus</dc:creator>
		<pubDate>Wed, 15 Oct 2008 08:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/archives/348.html#comment-30234</guid>
		<description>呵呵
楼主的方法不错
不过还有一个官方方法，不需要修改accesslog.format
启用mod_extforward即可
mod_extforward - extract the client&#039;s &quot;real&quot; IP from X-Forwarded-For header
http://redmine.lighttpd.net/wiki/lighttpd/Docs#Options-for-mod_extforward-extract-the-clients-real-IP-from-X-Forwarded-For-header
btw:lighttpd什么时候抛弃trac了???</description>
		<content:encoded><![CDATA[<p>呵呵<br />
楼主的方法不错<br />
不过还有一个官方方法，不需要修改accesslog.format<br />
启用mod_extforward即可<br />
mod_extforward &#8211; extract the client&#8217;s &#8220;real&#8221; IP from X-Forwarded-For header<br />
<a href="http://redmine.lighttpd.net/wiki/lighttpd/Docs#Options-for-mod_extforward-extract-the-clients-real-IP-from-X-Forwarded-For-header" rel="nofollow">http://redmine.lighttpd.net/wiki/lighttpd/Docs#Options-for-mod_extforward-extract-the-clients-real-IP-from-X-Forwarded-For-header</a><br />
btw:lighttpd什么时候抛弃trac了???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.toplee.com/blog/348.html/comment-page-1#comment-18070</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Mon, 27 Aug 2007 03:54:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/archives/348.html#comment-18070</guid>
		<description>[Comment ID #18069 Will Be Quoted Here]

这样的情况下，基本上都是收集squid的日志进行统计分析，而不是分析后端日志了。</description>
		<content:encoded><![CDATA[<blockquote class='comment_quote'><p><a href="http://www.toplee.com/blog/348.html#comment-18069" title="Click here to view the original comment"><em>flying on August 27, 2007 at 10:55 am said:</em></a></p>
<p>或者，如果是cdn服务器，既有通过squid过来的访问，也有直接从用户过来的访问，可怎么弄啊</p></blockquote>
<p>这样的情况下，基本上都是收集squid的日志进行统计分析，而不是分析后端日志了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flying</title>
		<link>http://www.toplee.com/blog/348.html/comment-page-1#comment-18069</link>
		<dc:creator>flying</dc:creator>
		<pubDate>Mon, 27 Aug 2007 02:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/archives/348.html#comment-18069</guid>
		<description>或者，如果是cdn服务器，既有通过squid过来的访问，也有直接从用户过来的访问，可怎么弄啊</description>
		<content:encoded><![CDATA[<p>或者，如果是cdn服务器，既有通过squid过来的访问，也有直接从用户过来的访问，可怎么弄啊</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flying</title>
		<link>http://www.toplee.com/blog/348.html/comment-page-1#comment-18068</link>
		<dc:creator>flying</dc:creator>
		<pubDate>Mon, 27 Aug 2007 02:54:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/archives/348.html#comment-18068</guid>
		<description>如果是一层以上代理可怎么办呀？</description>
		<content:encoded><![CDATA[<p>如果是一层以上代理可怎么办呀？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 喜欢BSD</title>
		<link>http://www.toplee.com/blog/348.html/comment-page-1#comment-11903</link>
		<dc:creator>喜欢BSD</dc:creator>
		<pubDate>Fri, 02 Mar 2007 18:49:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/archives/348.html#comment-11903</guid>
		<description>不错的小经验，感谢楼主！</description>
		<content:encoded><![CDATA[<p>不错的小经验，感谢楼主！</p>
]]></content:encoded>
	</item>
</channel>
</rss>
