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

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 z

[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 ProxyRequest

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 wrot

[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: ServerAdmin XXX DocumentRoot XXX ServerName myserver.xxx.xxx ServerAlias myserver ErrorLog /usr/local/apache/logs/error_log CustomLog /usr/local/apache/logs/access_log common ScriptAlias /

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 necessar

Re: [Zope] REMOTE_ADDR

2001-01-22 Thread Oleg Broytmann
On Mon, 22 Jan 2001, Chris Withers wrote: > You can patch Apache... No, thanks, I am pretty satisfied with mod_pcgi2 :))) And even if I will look for something completely different - I'd switch to mod_fcgi. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECT

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 he

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 can

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 Zo

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
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 Zop