I dont do exactly what you are looking for but I do do this:

RewriteEngine on
RewriteRule ^/(.*) http://localhost:8080/zopefolder/$1?REAL_HOST=%{HTTP_HOST} [QSA,P]
ProxyPass /misc_ http://localhost:8080/misc_
ProxyPass /p_ http://localhost:8080/p_

Notice that I am passing the HTTP_HOST variable through as a query string append. I do this because it is the only way (that I know of) to pass client info to Zope. I then call it as I would any other zope variable. of course you could do the same for IP or any other similar variable.

Hope this helps.

Tom

=> -----Original Message-----
=> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On
=> Behalf Of Jim
=> Penny
=> Sent: Tuesday, 12 June 2001 10:33 AM
=> To: zope@zope.org
=> Subject: [Zope] Apache, mod_rewrite, https working together?
=>
=>
=> One of the strengths of the mod_proxy solution is that
=> it it possible to use apache-ssl to convert https
=> requests to http.
=>
=> But, that comes with the cost that it is quite difficult
=> for the Zope server to know the actual remote IP.
=>
=> It would be nice to be able to use the E=... flag setting
=> of the RewriteRule to set the REMOTE_ADDR to something
=> visible to Zope.
=>
=> Has anyone used mod_rewrite directives to proxy an https
=> request onto an http zope site?  Does the E= flag permit
=> forwarding the REMOTE_ADDR?
=>
=> Thanks
=>
=> Jim Penny
=>
=> _______________________________________________
=> Zope maillist  -  Zope@zope.org
=> 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 )
=>