Plone behind Apache problem...

JZ spamerom at niet.com
Thu Dec 30 01:01:22 CET 2004


I would like to exclude some files from Plone control within the same
virtual host. The problem is, I cannot use mod_rerwite because Plone needs
mod_proxy for working correctly. So the following rule does not work for
*.php files at all:

RewriteEngine on
RewriteRule \.php - [L]
ProxyPass /
http://host.com:8080/VirtualHostBase/http/host.com:80/mysite/VirtualHostRoot/
ProxyPassReverse /
http://host.com:8080/VirtualHostBase/http/host.com:80/mysite/VirtualHostRoot/

But when I use mod_rewrite instead mod_proxy, I cannot use Plone! It means
not everything works correctly (I cannot add any folder, or document etc.
without raising exception) I think it is because Plone needs
ProxyPassReverse rule for full working. So the following rules work for
*.php, but do not work for Plone:

RewriteEngine on
RewriteRule \.php - [L]
RewriteRule ^(.*)
http://host.com:8080/VirtualHostBase/http/host.com:80/mysite/VirtualHostRoot/$1
[P,L]

I know, I can add ProxyPass rule for excluding specific folder from Plone
but it is not the case. I want to exclude files with specific extensions,
not specific folders. Who knows how to solve that dillemma?

--
JZ ICQ:6712522
http://zabiello.com



More information about the Python-list mailing list