[Zope] - Virtual Hosting with Mod_rewrite

Jonathan Bradshaw jonathan-zope@NrgUp.Com
Thu, 31 Dec 1998 17:18:59 -0500


Well I thought I could be clever and use ModRewrite in Apache to do virtual
servers within Zope.

So I used the rewrite:

RewriteCond %{HTTP:Authorization}  ^(.*)
RewriteRule ^/(.*) /opt/Web/Zope/Zope.cgi/IndyExploring/$1 [e=HTTP_CGI_AUTHORI
ZATION:%1,t=application/x-httpd-cgi,l]

And it sort of worked except I noticed Zope keeps putting a BASE HREF
statement in the header that uses the full path :-(

How are other people doing this?

-- 
 Jonathan Bradshaw (Jonathan@NrgUp.Com) | Novell 4.x CNE | Ham Callsign N9OXE
          "...I'm not one of those who think Bill Gates is the devil.
         I simply suspect that if Microsoft ever met up with the devil,
              it wouldn't need an interpreter."  -- Nick Petreley