[Zope] Apache Rewrite w/o VHM
Evan Simpson
evan@4-am.com
Tue, 06 Aug 2002 16:19:46 -0500
Jim Kutter wrote:
> if I setup a proxypass so that /section_in_zope/ goes to
> www.mysite.com:8080/section_in_zope (which works), all my links
> (file.html) now go to www.mysite.com:8080/section_in_zope/file.html.
> So i set a siteroot for section_in_zope, with base
> http://www.mysite.com/section_in_zope/ and base /section_in_zope/.
> The problem with that is now the link file.html goes to
> http://www.mysite.com/section_in_zope/section_in_zope/file.html and
> it grows with each new link.
Forget SiteRoot. Delete it, add a VirtualHostMonster named 'vhm' to
your Zope root, and change your ProxyPass to the following (all one line):
ProxyPass /section_in_zope
http://localhost:8080/VirtualHostRoot/http/www.mysite.com:80/
This assumes that Zope is on the same server as Apache ('localhost') and
that there's a Zope Folder named 'section_in_zope'.
Cheers,
Evan @ 4-am