Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
RewriteEngine on
RewriteMap lowercase int:tolower
RewriteRule ^ - [E=SERVER_NAME:${lowercase:%{SERVER_NAME}}]
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*) https://%1$1 [R=301,L]
ProxyPassInterpolateEnv On
ProxyRequests Off
ProxyPass /${SERVER_NAME}:443/my_plone_site/VirtualHostRoot/ interpolate
ProxyPassReverse${SERVER_NAME}:443/my_plone_site/VirtualHostRoot/ interpolate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment