[Zope] REMOTE_ADDR passed through when proxying

2008-06-11 Thread Peter Bengtsson
Since apache sits in front of Zope, the REMOTE_ADDR header always becomes '127.0.0.1' not the IP address of the actual client connecting. What do I need to do to get this passed on to Zope. Tried ProxyPreserveHost and ProxyVia but that's not it. I've even tried, dangerously, switching

Re: [Zope] REMOTE_ADDR passed through when proxying

2008-06-11 Thread Andreas Jung
--On 11. Juni 2008 17:34:27 +0100 Peter Bengtsson [EMAIL PROTECTED] wrote: Since apache sits in front of Zope, the REMOTE_ADDR header always becomes '127.0.0.1' not the IP address of the actual client connecting. What do I need to do to get this passed on to Zope. trusted-proxies within

Re: [Zope] REMOTE_ADDR passed through when proxying

2008-06-11 Thread Peter Bengtsson
2008/6/11 Andreas Jung [EMAIL PROTECTED]: --On 11. Juni 2008 17:34:27 +0100 Peter Bengtsson [EMAIL PROTECTED] wrote: Since apache sits in front of Zope, the REMOTE_ADDR header always becomes '127.0.0.1' not the IP address of the actual client connecting. What do I need to do to get this

[Zope] REMOTE_ADDR

2001-01-25 Thread Marcus Mendes
I don't understand very much about Apache; but i've this lines in my httpd.conf. See: VirtualHost xxx.xxx.xxx.xxx ServerAdmin XXX DocumentRoot XXX ServerName myserver.xxx.xxx ServerAlias myserver ErrorLog /usr/local/apache/logs/error_log CustomLog

Re: [Zope] REMOTE_ADDR

2001-01-25 Thread Oleg Broytmann
Hi! This [P] suggests that you use mod_proxy. --\ | As I already said, mod_proxy can't pass environment. ---+--\ | | On Thu, 25 Jan 2001, Marcus Mendes

[Zope] REMOTE_ADDR

2001-01-22 Thread Marcus Mendes
Hello, Where can I find (and use) the variable REMOTE_ADDR? I've a python function that deal with REMOTE_ADDR, but I've got the IP address's Zope Server Machine. I looked at Z2.log and find the same IP, ie. the address's Zope Server Machine. I need the remote address. I'm using SiteAccess and

Re: [Zope] REMOTE_ADDR

2001-01-22 Thread Oleg Broytmann
On Mon, 22 Jan 2001, Marcus Mendes wrote: Where can I find (and use) the variable REMOTE_ADDR? I've a python function that deal with REMOTE_ADDR, but I've got the IP address's Zope Server Machine. I looked at Z2.log and find the same IP, ie. the address's Zope Server Machine. I need the

Re: [Zope] REMOTE_ADDR

2001-01-22 Thread Marcus Mendes
Oleg Broytmann wrote: On Mon, 22 Jan 2001, Marcus Mendes wrote: Where can I find (and use) the variable REMOTE_ADDR? I've a python function that deal with REMOTE_ADDR, but I've got the IP address's Zope Server Machine. I looked at Z2.log and find the same IP, ie. the address's Zope Server

Re: [Zope] REMOTE_ADDR

2001-01-22 Thread Oleg Broytmann
On Mon, 22 Jan 2001, Marcus Mendes wrote: Yes, I'm using apache before the Zope, ie, Apache redirects all the request to the 8080 to Zope. How can Id obtain REMOTE_ADDR ? Which way do you connect Apache to Zope? Mod_pcgi? mod_fastcgi? mod_proxy? I am afraid if you use mod_proxy - you

Re: [Zope] REMOTE_ADDR

2001-01-22 Thread Chris Withers
Oleg Broytmann wrote: Which way do you connect Apache to Zope? Mod_pcgi? mod_fastcgi? mod_proxy? I am afraid if you use mod_proxy - you cannot obtain remote address. You can patch Apache... Or may be there is a way to pass it explicitly to Zope. ...or pass it explicitly. Some here

Re: [Zope] REMOTE_ADDR

2001-01-22 Thread Dieter Maurer
Marcus Mendes writes: Where can I find (and use) the variable REMOTE_ADDR? I've a python function that deal with REMOTE_ADDR, but I've got the IP address's Zope Server Machine Probably, you must tweak your Web server. Look at zope.org. NIP people have created a HowTo for the necessary