Marcin Kasperski writes:
 > I use Zope via Apache proxy, what causes some trouble (all remote IPs
 > for Zope are equal to 127.0.0.1).
 > 
 > As I finally installed mod_proxy_add_forward, I get original address in
 > X-Forwarded-For header (REQUEST['HTTP_X_FORWARDED_FOR']).
 > 
 > The question is: can I do something easy to automatically perform
 >      if(remote_ip = 127.0.0.1 and X-Forwarded-For exists) then
 >               set remote_ip = whatever is in X-Forwarded-For
 > logic? In particular, I would like changed IP to be used by Zope access
 > control and Zope log.
We have had similar problems.

Friendly people from NIP made a HowTo patch Apache to let the
information through.

If you do not want to patch Apache, you can use a SiteAccess (--> zope.org)
AccessRule in your top (logical) folder to modify your
REQUEST object as you like.


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 )

Reply via email to