<?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"
	>
<channel>
	<title>Comments on: HOWTO: log the user&#8217;s IP, not the proxy&#8217;s, in Lighttpd access log</title>
	<atom:link href="http://www.fak3r.com/2008/01/09/howto-log-the-users-ip-not-the-proxys-in-lighttpd-access-log/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fak3r.com/2008/01/09/howto-log-the-users-ip-not-the-proxys-in-lighttpd-access-log/</link>
	<description>dim high beams for oncoming traffic</description>
	<pubDate>Tue, 02 Dec 2008 04:26:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: fak3r</title>
		<link>http://www.fak3r.com/2008/01/09/howto-log-the-users-ip-not-the-proxys-in-lighttpd-access-log/#comment-27837</link>
		<dc:creator>fak3r</dc:creator>
		<pubDate>Thu, 31 Jul 2008 14:44:56 +0000</pubDate>
		<guid isPermaLink="false">http://fak3r.com/2008/01/09/howto-log-users-ip-not-the-proxys-in-lighttpd-access-log/#comment-27837</guid>
		<description>@jt
I don't know of a way to do that, currently I'm running nginx w/o varnish so I haven't had that issue.  I want to re-implement varnish in the mix soon, possibly with nginx acting as a proxy in front of it so it only sends dynamic requests back to varnish, while handling static requests by itself (nginx is said to be faster at serving static that varnish, which makes sense since varnish stores files via disk.</description>
		<content:encoded><![CDATA[<p>@jt<br />
I don&#8217;t know of a way to do that, currently I&#8217;m running nginx w/o varnish so I haven&#8217;t had that issue.  I want to re-implement varnish in the mix soon, possibly with nginx acting as a proxy in front of it so it only sends dynamic requests back to varnish, while handling static requests by itself (nginx is said to be faster at serving static that varnish, which makes sense since varnish stores files via disk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jt</title>
		<link>http://www.fak3r.com/2008/01/09/howto-log-the-users-ip-not-the-proxys-in-lighttpd-access-log/#comment-27650</link>
		<dc:creator>jt</dc:creator>
		<pubDate>Wed, 02 Apr 2008 03:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://fak3r.com/2008/01/09/howto-log-users-ip-not-the-proxys-in-lighttpd-access-log/#comment-27650</guid>
		<description>This works fine but I'm getting the port # appended to the IP address. I'm setting the X-Forward-For in Varnish like this:

        # Capture the client IP address
        remove req.http.X-Forwarded-For;
        set req.http.X-Forwarded-For = client.ip;


And the accesslog.format in lighttpd as shown above. What I get in the lighttpd log is:

IPAddress:Port, IPAddress   like this:

208.96.54.73:51575, 208.96.54.73 - - [01/Apr/2008:23:27:41 -0400] "GET /robots.txt HTTP/1.1" 404 345 "-" "Mozilla/5.0 (compatible; discobot/1.0; +http://discoveryengine.com/discobot.html)"


AWStats treats IP's with the port #'s as separate hosts obviously and I want to remove the port # from the ip address. Any way to configure Varnish to just send the client IP and not the port?  I'd rather not have to parse &#38; fix the log files if possible.</description>
		<content:encoded><![CDATA[<p>This works fine but I&#8217;m getting the port # appended to the IP address. I&#8217;m setting the X-Forward-For in Varnish like this:</p>
<p>        # Capture the client IP address<br />
        remove req.http.X-Forwarded-For;<br />
        set req.http.X-Forwarded-For = client.ip;</p>
<p>And the accesslog.format in lighttpd as shown above. What I get in the lighttpd log is:</p>
<p>IPAddress:Port, IPAddress   like this:</p>
<p>208.96.54.73:51575, 208.96.54.73 - - [01/Apr/2008:23:27:41 -0400] &#8220;GET /robots.txt HTTP/1.1&#8243; 404 345 &#8220;-&#8221; &#8220;Mozilla/5.0 (compatible; discobot/1.0; +http://discoveryengine.com/discobot.html)&#8221;</p>
<p>AWStats treats IP&#8217;s with the port #&#8217;s as separate hosts obviously and I want to remove the port # from the ip address. Any way to configure Varnish to just send the client IP and not the port?  I&#8217;d rather not have to parse &amp; fix the log files if possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anon</title>
		<link>http://www.fak3r.com/2008/01/09/howto-log-the-users-ip-not-the-proxys-in-lighttpd-access-log/#comment-26425</link>
		<dc:creator>Anon</dc:creator>
		<pubDate>Wed, 09 Jan 2008 18:04:21 +0000</pubDate>
		<guid isPermaLink="false">http://fak3r.com/2008/01/09/howto-log-users-ip-not-the-proxys-in-lighttpd-access-log/#comment-26425</guid>
		<description>You can also do this with mod_extforward:
http://trac.lighttpd.net/trac/wiki/Docs/ModExtForward

With some caveats ... modifying the conf file seems more straightforward.</description>
		<content:encoded><![CDATA[<p>You can also do this with mod_extforward:<br />
<a href="http://trac.lighttpd.net/trac/wiki/Docs/ModExtForward" onclick="javascript:pageTracker._trackPageview('/outbound/comment/trac.lighttpd.net');" >http://trac.lighttpd.net/trac/wiki/Docs/ModExtForward</a></p>
<p>With some caveats &#8230; modifying the conf file seems more straightforward.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
