Whitespace.
This commit is contained in:
parent
3098a79758
commit
a398ff8bc1
1 changed files with 4 additions and 0 deletions
|
@ -5,20 +5,24 @@ RewriteEngine on
|
||||||
|
|
||||||
RewriteMap lowercase int:tolower
|
RewriteMap lowercase int:tolower
|
||||||
|
|
||||||
|
|
||||||
{% if env == "staging" %}
|
{% if env == "staging" %}
|
||||||
RewriteCond ${lowercase:%{SERVER_NAME}} ^[a-z0-9-]+\.id\.stg\.fedoraproject\.org$
|
RewriteCond ${lowercase:%{SERVER_NAME}} ^[a-z0-9-]+\.id\.stg\.fedoraproject\.org$
|
||||||
{% else %}
|
{% else %}
|
||||||
RewriteCond ${lowercase:%{SERVER_NAME}} ^[a-z0-9-]+\.id\.fedoraproject\.org$
|
RewriteCond ${lowercase:%{SERVER_NAME}} ^[a-z0-9-]+\.id\.fedoraproject\.org$
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
RewriteRule ^(.+) ${lowercase:%{SERVER_NAME}}$1 [C]
|
RewriteRule ^(.+) ${lowercase:%{SERVER_NAME}}$1 [C]
|
||||||
|
|
||||||
|
|
||||||
{% if env == "staging" %}
|
{% if env == "staging" %}
|
||||||
RewriteRule ^([a-z0-9-]+)\.id\.stg\.fedoraproject\.org/.* {{proxyurl}}/openid/id/$1/ [P,L]
|
RewriteRule ^([a-z0-9-]+)\.id\.stg\.fedoraproject\.org/.* {{proxyurl}}/openid/id/$1/ [P,L]
|
||||||
{% else %}
|
{% else %}
|
||||||
RewriteRule ^([a-z0-9-]+)\.id\.fedoraproject\.org/.* {{proxyurl}}/openid/id/$1/ [P]
|
RewriteRule ^([a-z0-9-]+)\.id\.fedoraproject\.org/.* {{proxyurl}}/openid/id/$1/ [P]
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
RewriteCond %{HTTPS} off
|
RewriteCond %{HTTPS} off
|
||||||
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]
|
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue