Host Plone site a level down with Apache and VirtualHostMonster
We have our Plone site running on localhost port 8888, then had Apache fronting it and used mod_rewrite and VirtualHostMonster so that it appeared at the top level "/" URL.
RewriteRule ^/(.*) \
http://localhost:8888/VirtualHostBase/http/%{SERVER_NAME}:80/cjp/VirtualHostRoot/$1 [L,P]
We later needed to move it down a level of the URL hierarchy as we had a Django app residing on the same server. In this example, we want it accessed under the "/plone" hierarchy. Christian 'Tiran' Heims document on the VHM gave me the magic I needed. While it's easy to have Apache match on the "/plone" URL and get to plone, we needed a _vh_* portion in the path to make rewriting the references work in the Plone-served pages.
The first works for "/plone/..." URLs and the second allows folks to come in with a simple "/plone" path.
RewriteRule ^/plone/(.*) \
http://localhost:8888/VirtualHostBase/http/%{SERVER_NAME}:80/cjp/VirtualHostRoot/_vh_plone/$1 [L,P]
RewriteRule ^/plone$ \
http://localhost:8888/VirtualHostBase/http/%{SERVER_NAME}:80/cjp/VirtualHostRoot/_vh_plone/ [L,P]
