4 Sep
2002
4 Sep
'02
7:20 a.m.
On Tuesday 03 Sep 2002 9:20 pm, Ausum Studio wrote:
I'd like to use the REMOTE_ADDR key from all requests to my server, and I have Apache in front of Zope. Calling that key retrieves 127.0.0.1 as expected, given the fact Apache is currently the only one client to Zope, but this last should get to know the visitor's IP in order to perform tasks. What's the best way to do this?
Have a look in the REQUEST and see what header Apache is setting to contain this information. Im not sure about Apache, but Squid sets X-Forwarded-For. Getting this to happen automatically is on the todo list for Zope 2.7