Skip to content

Instantly share code, notes, and snippets.

Embed
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 / http://127.0.0.1:9092/VirtualHostBase/https/${SERVER_NAME}:443/my_plone_site/VirtualHostRoot/ interpolate
ProxyPassReverse http://127.0.0.1:9092/VirtualHostBase/https/${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
You can’t perform that action at this time.