mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-16 13:56:03 +08:00
18 lines
593 B
Plaintext
18 lines
593 B
Plaintext
{% 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]
|
|
{% end %}
|
|
|
|
# /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 }}
|