Files
fedora-infra_ansible/roles/httpd/reverseproxy/templates/reversepassproxy.fp-wiki.conf
Ralph Bean 3098a79758 Whitespace.
2014-12-08 20:53:14 +00:00

18 lines
536 B
Plaintext

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{QUERY_STRING} Special:Userlogin [NC]
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,NE,L]
RewriteCond %{HTTPS} off
RewriteCond %{QUERY_STRING} action= [NC]
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,NE,L]
# /wiki must come before /w due to prefix matching.
ProxyPass {{wikipath}} {{proxyurl}}{{wikipath}}
ProxyPassReverse {{wikipath}} {{proxyurl}}{{wikipath}}
ProxyPass {{wpath}} {{proxyurl}}{{wpath}}
ProxyPassReverse {{wpath}} {{proxyurl}}{{wpath}}