[Zope] Problem with alternate path and request
Dieter Maurer
dieter at handshake.de
Sun Oct 19 12:28:02 EDT 2003
Fernando Martins wrote at 2003-10-14 21:44 +0200:
> I'm using VHM and I need the (real) remote IP, as given by
> HTTP_X_FORWARDED_FOR. However, when accessing the page without any
> virtualization, I need to fall back on REMOTE_ADDR.
>
> Now, any idea why the following
>
> <p tal:content="request/HTTP_X_FORWARDED_FOR | request/REMOTE_ADDR"></p>
>
> doesn't work as expected: HTTP_X_FORWARDED_FOR returns an empty string
> rather than failling in favor of REMOTE_ADDR.
This means that something defined "HTTP_X_FORWARDED_FOR" even
when you did not use virtualisation.
You know, that you can view the request with
'<p tal:content="structure request">'?
Dieter
More information about the Zope
mailing list