Zope supports your out-of-box scenario with some special rewriting using the VirtualHostMonster flags on the go. This ensures that any URLs created by Zope (and by extension, Plone) are also valid for proxied requests.
You must use both mod_rewrite and mod_proxy , they will work together.
To make it easier to create the correct rewrite URLs, someone created a great RewriteRule Witch . Inclusion of your specific example:
RewriteRule ^/mysite($|/.*) \ http://127.0.0.1:8080/VirtualHostBase/\ http/%{SERVER_NAME}:80/mysite/VirtualHostRoot/_vh_mysite$1 [L,P]
Thus, for any URLs embedded at http://www.example.com/mysite , rewrite them for service from a server running on port 8080 localhost, making sure that Zope generates URLs with the same root .
For more information, see the detailed documentation for the VirtualHostMonster feature on the Zope wiki.
source share