Special-case mediawiki (reverseproxy).
This commit is contained in:
parent
08152258f0
commit
00eeee6193
1 changed files with 17 additions and 0 deletions
|
@ -0,0 +1,17 @@
|
|||
{% if force_ssl_login %}
|
||||
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]
|
||||
{% endif %}
|
||||
|
||||
# /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}}
|
Loading…
Add table
Add a link
Reference in a new issue