Plone behinde apache proxy
I have Plone now working behind an apache proxy server, still most of the content coming from the apace server but as soon i have figured out how to get a decent photo album running I'll move this to be the main main site. The secredt of getting tio works was in the rewrite rules in the apache server.
<VirtualHost *>
...
RewriteEngine On
RewriteRule ^/new$ \
http://127.0.0.1:9673/VirtualHostBase/http/%{SERVER_NAME}:80/AndersArnholm/VirtualHostRoot/_vh_new/ [L,P]
RewriteRule ^/new/(.*) \ http://127.0.0.1:9673/VirtualHostBase/http/%{SERVER_NAME}:80/AndersArnholm/VirtualHostRoot/_vh_new/$1 [L,P]
ProxyVia on
</VirtualHost>
The whole secret lies in the two RewriteRules, and those two are a little magic. No, a loot of magic. The first rule takes the /new request on the server and forwards to http://127.0.0.1:9673/VirtualHostBase/http/anders.arnholm.se:80/AndersArnholm/VirtualHostRoot/_vh_new/, Yes that URL is long and magic. This is then remabe by the Virtual Host Monster in Zope into where my stuff is added there and all incoming and out going likes are magically changed into http://anders.arnholm.se/new The second rule is about the same but for all requests to pages below /new/.
Popularity: 1% [?]
Additional comments powered by BackType