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 passed on to Zope.
>
>
> trusted-proxies within zope.conf?
Yeah. Got that.
It's set to the IP and the domain name used like the example shows.

In fact, I'm deploying a site in Ubuntu that was originally deployed
with FreeBSD and I've copied "everything"! (Putting it in quotes
because I can't be 101% certain plus certain things should be copied).
On the FreeBSD the apache was compiled from source (long before I
arrived).

Besides, the IP addres IS passed but under HTTP_X_FORWARDED_FOR but I
think the Domain part of acl_users relies on REMOTE_ADDR

>
> -aj



-- 
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


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 zope.conf?

-aj

pgpukjJj4TEJ4.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


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 wrote:   |  |
>RewriteRule ^/(.*) http://myserver:8080/marcus/$1 [P]<-/  |
>  |
> I'm using Zope.cgi with SiteAccess   |
> In the SiteAcess, I have -> base: http://myserver:8080   |
> and URL : /marcus|
>  |
> How can I pass to my ZServer the REMOTE_ADDR's content?  |
>  |
> -+
> Oleg Wrote:  |
>  V
>   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/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




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
changes to Apache (Thank you NIP!).


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




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 PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




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 at NIP knows how to do this, but not me ;-)

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




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 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/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




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 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/ [EMAIL PROTECTED]
>Programmers don't die, they just GOSUB without RETURN.
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> 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.



___
Zope maillist  -  [EMAIL PROTECTED]
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 )




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 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/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
Zope maillist  -  [EMAIL PROTECTED]
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 )