http://stackoverflow.com/questions/5170364/how-do-i-configure-my-web-server-to-work-with-the-pluggableauthservices-domain

Bashar <bashar@gmail.com> wrote:

On Sun, Feb 19, 2012 at 9:21 PM, Dave Steinberg <dave@redterror.net> wrote:
The weird thing I dont see X-Forwarded-For HTTP-Header anywhere in
Z2.log , i see something like this:
111.222.333.444 - bashar [19/Feb/2012:20:24:19 +0300] "GET /html/admin
HTTP/1.1" 200 5636 "" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64;
rv:10.0.1) Gecko/20100101 Firefox/10.0.1"

I remember X-Forwarded requests in Nginx sits at the end of the log
entries but not the case in this log, would it be I'm using a very old
pound and didn't have this feature? pound -V shows 2.1.3

The X-Forwarded-For header is not logged by default by most pieces of software, unless you're defining your own custom log format.  Even then, it probably won't always log what you expect, since this field can be a list of IPs.

It's probably worthwhile to setup a little test script in Zope and examine the headers.  Either that or via tcpdump / wireshark.  Then you can be certain as far as what Zope is getting.

PS - Upgrading to a more recent release is probably a good idea.

Regards,

Being not a Zope expert this could be a hard task to me

more log entries also doesn't show the originating IP too:
111.222.333.444 - Anonymous [19/Feb/2012:20:48:24 +0300] "GET /html/img/buttons/search_button_gif HTTP/1.1" 200 408 "http://www.domaindns.com/html/index.html" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
111.222.333.444 - Anonymous [19/Feb/2012:20:48:25 +0300] "GET /html/img/buttons/add_button_gif HTTP/1.1" 200 384 "http://www.domaindns.com/html/index.html" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
111.222.333.444 - Anonymous [19/Feb/2012:20:48:26 +0300] "GET /favicon.ico HTTP/1.1" 404 3463 "" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
111.222.333.444 - Anonymous [19/Feb/2012:20:48:34 +0300] "GET / HTTP/1.0" 302 226 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; i-NavFourF; Orange 7.4 ; NaviWoo1.1; .NET CLR 1.1.4322)"
111.222.333.444 - Anonymous [19/Feb/2012:20:48:34 +0300] "GET /html HTTP/1.0" 500 4377 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322; IEMB3; InfoPath.1; IEMB3; yplus 5.1.04b)"
111.222.333.444 - Anonymous [19/Feb/2012:20:49:48 +0300] "GET / HTTP/1.1" 302 207 "" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
111.222.333.444 - Anonymous [19/Feb/2012:20:49:48 +0300] "GET /html/ HTTP/1.1" 500 4358 "" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
111.222.333.444 - Anonymous [19/Feb/2012:20:59:03 +0300] "GET / HTTP/1.1" 302 207 "" ""
111.222.333.444 - Anonymous [19/Feb/2012:20:59:03 +0300] "GET /html/ HTTP/1.1" 500 4358 "" ""
111.222.333.444 - Anonymous [19/Feb/2012:21:01:59 +0300] "GET / HTTP/1.0" 200 371 "" "Mozilla/4.0 (compatible; MSIE 6.0; AOL 9.0; Windows NT 5.1; SV1; AT&T CSM8.0)"
111.222.333.444 - Anonymous [19/Feb/2012:21:07:17 +0300] "GET / HTTP/1.1" 302 207 "" ""
111.222.333.444 - Anonymous [19/Feb/2012:21:07:18 +0300] "GET /html/ HTTP/1.1" 500 4358 "" ""
111.222.333.444 - Anonymous [19/Feb/2012:21:26:30 +0300] "GET / HTTP/1.1" 302 207 "" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
111.222.333.444 - Anonymous [19/Feb/2012:21:26:31 +0300] "GET /html/ HTTP/1.1" 500 4358 "" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"


I'm upgrading now, but there is no feature in pound that would make the original IP forwards to zope?

Thanks