Skip to content.
Sections

Quantum Magic & Love Quarks

Personal tools
You are here: Home » Notes » Apache RewriteEngine Rules for Plone
 
Views

Apache RewriteEngine Rules for Plone

Document Actions
last edited 2 years ago by pf
Was getting 
client denied by server configuration: errors, resoved with a

<Location "/forums">
        Order allow,deny
        Allow from all
</Location>

also to filter certain URIs prior to passing to the zope server with a rewrite rule:

DocumentRoot  /srv/www/vhosts/mysite.com/html/
<Directory  /srv/www/vhosts/mysite.com/html>
Options +FollowSymLinks
AllowOverride None
</Directory>

RewriteEngine On
RewriteRule ^/forums/(.*) /srv/www/vhosts/mysite.com/html/forums/$1 [L]

then the rule for Plone:

RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http//www.mysite.com:80/MyMemberSite/VirtualHostRoot/$1 [L,P]

and finally, prevent spurious proxies

<LocationMatch "^[^/]">
    Deny from all
</LocationMatch>


 

Powered by Plone