Re: [Zope-dev] Reporting X-FORWARDED-FOR into the log ( REMOTE_ADDR )

2004-07-23 Thread Egon
Yes, X-FORWARDED-FOR, but this solution (enabling
trusted-servers in zope.conf) do not work.
Trusted-servers in my zope.conf are already enabled,
but in the log file, the ip of the proxy appears when
I want to log the ip of the client.
I was searching the function that writes the
REMOTE_ADDR variable into the log file in order to
modify it.
I want to modify the function that writes de
REMOTE_ADDR variable to:
if X-FORWARDED-FOR and REMOTE_ADDR in trusted-servers


--- Toby Dickenson
[EMAIL PROTECTED] escribió:
 On Thursday 22 July 2004 12:06, Egon wrote:
  I have a Zope server behind a proxy server, this
 proxy
  enables de X-FORWARDED-FROM that contains the real
 ip
  of the client that is connected.
  I want to log this variable but I cannot find the
 way
  to do it.
 
 Check out trusted-proxies in the zope configuation
 file.
 
 and you mean X-FORWARDED-FOR, not -FROM, right?
 
 -- 
 Toby Dickenson
  



__
Yahoo! lanza su nueva tecnología de búsquedas
¿te atreves a comparar?
http://busquedas.yahoo.es
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Reporting X-FORWARDED-FOR into the log ( REMOTE_ADDR )

2004-07-23 Thread Egon
Yes, X-FORWARDED-FOR, but this solution (enabling
trusted-servers in zope.conf) do not work.
Trusted-servers in my zope.conf are already enabled,
but in the log file, the ip of the proxy appears when
I want to log the ip of the client.
I was searching the function that writes the
REMOTE_ADDR variable into the log file in order to
modify it.
I was searching this function across the source code
of Zope 2.7.1 in /opt/zope/lib/python.
 
I want to modify the function that writes de
REMOTE_ADDR variable to:
if X-FORWARDED-FOR and REMOTE_ADDR in trusted-servers:
REMOTE_ADDR = X-FORWARDED-FOR
log ( REMOTE_ADDR)

Anyone can help me ?

Thanks
--- Toby Dickenson
[EMAIL PROTECTED] escribió:
 On Thursday 22 July 2004 12:06, Egon wrote:
  I have a Zope server behind a proxy server, this
 proxy
  enables de X-FORWARDED-FROM that contains the real
 ip
  of the client that is connected.
  I want to log this variable but I cannot find the
 way
  to do it.
 
 Check out trusted-proxies in the zope configuation
 file.
 
 and you mean X-FORWARDED-FOR, not -FROM, right?
 
 -- 
 Toby Dickenson
  



__
Yahoo! lanza su nueva tecnología de búsquedas
¿te atreves a comparar?
http://busquedas.yahoo.es
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Reporting X-FORWARDED-FOR into the log ( REMOTE_ADDR )

2004-07-22 Thread Egon
I have a Zope server behind a proxy server, this proxy
enables de X-FORWARDED-FROM that contains the real ip
of the client that is connected.
I want to log this variable but I cannot find the way
to do it.

Can anyone to help me? 

Thanks.



__
Yahoo! lanza su nueva tecnología de búsquedas
¿te atreves a comparar?
http://busquedas.yahoo.es
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )