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 Zope 2.2.4 on Linux. I don't understand ... Thanks in advance. Marcus Mendes
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 remote address. I'm using SiteAccess and Zope 2.2.4 on Linux. I don't understand ...
Do you use Apache? Which way do you connect Zope and Apache? Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
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 Machine. I need the remote address. I'm using SiteAccess and Zope 2.2.4 on Linux. I don't understand ...
Do you use Apache? Which way do you connect Zope and Apache?
Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
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 ? Thanks in advance. Marcus Mendes.
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 cannot obtain remote address. Or may be there is a way to pass it explicitly to Zope. Other modules (FCGI/PCGI) should pass all neccessary information (actually, the entire request environment) by default. Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
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 at NIP knows how to do this, but not me ;-) cheers, Chris
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/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
participants (3)
-
Chris Withers -
Marcus Mendes -
Oleg Broytmann