Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat rewrite-to-plone.conf
- UseCanonicalName On
- #NameVirtualHost *
- <VirtualHost *>
- ServerSignature On
- Header set X-Frame-Options "SAMEORIGIN"
- Header set Strict-Transport-Security "max-age=15768000; includeSubDomains"
- Header set X-XSS-Protection "1; mode=block"
- Header set X-Content-Type-Options "nosniff"
- Header set Content-Security-Policy-Report-Only "default-src 'self'; img-src *; style-src 'unsafe-inline'; script-src 'unsafe-inline' 'unsafe-eval'"
- ProxyVia On
- ProxyRequests Off
- ProxyPreserveHost On
- # prevent your web server from being used as global HTTP proxy
- <LocationMatch "^[^/]">
- Deny from all
- </LocationMatch>
- <Proxy *>
- Order deny,allow
- Allow from localhost
- # Allow from all
- </Proxy>
- RewriteEngine On
- LogLevel alert rewrite:trace6
- #<IfModule mod_rewrite.c>
- # RewriteEngine On
- # RewriteCond %{HTTP_HOST} ^rpgbus\.com [NC]
- # RewriteRule (.*) http://www.rpgbus.com$1 [L,R=302]
- #</IfModule>
- #works for specific domain as per: http://betabug.ch/zope/witch but need to wildcard the 120+ domains, not write 120 .conf files!!!
- #RewriteRule ^($|/.*) \
- #http://127.0.0.1:8080/VirtualHostBase/\
- #http/%{SERVER_NAME}:80/rpgbus/VirtualHostRoot$1 [L,P]
- # doesn't work: - RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/%{HTTP_HOST}:80/Plone/VirtualHostRoot/$1 [L,P]
- # almost works except doesn't pass the /<site> variable!
- #RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/%{HTTP_HOST}:80/VirtualHostRoot/$1 [L,P]
- #straight from here: https://docs.plone.org/manage/deploying/front-end/apache.html will not work with the "Plone" part at all
- RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/%{HTTP_HOST}:80/Plone/VirtualHostRoot/$1 [P,L]
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement