diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.fp-wiki.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.fp-wiki.conf index 7aa53575cf..a59d73c160 100644 --- a/roles/httpd/reverseproxy/templates/reversepassproxy.fp-wiki.conf +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.fp-wiki.conf @@ -1,3 +1,4 @@ + RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{QUERY_STRING} Special:Userlogin [NC] @@ -7,6 +8,7 @@ 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}}