[Zope] REMOTE_ADDR unavailable when using Virtual host

Dieter Maurer dieter@handshake.de
Mon, 2 Jun 2003 18:57:03 +0200


robert wrote at 2003-6-2 07:02 +0200:
 > I had tried your patch allredy. However it did not work. Somehow the condition
 > +            if stack and stack[-1] == 'VirtualHostRemoteAddr':
 > was never true (I checked by having the stack printed).

You must use it in your Apache RewriteRule:

    .../VirtualHostBase/http/domain/VirtualHostRemoteAddr/%{REMOTE_ADDR}/...


Dieter