Set HSTS for sslonly websites in roles/httpd/reverseproxy
This commit is contained in:
parent
ee9730d6b7
commit
ce8655f7d1
7 changed files with 1 additions and 12 deletions
|
@ -3,8 +3,6 @@ Alias /favicon.ico /srv/web/fedoraproject.org/static/images/favicon.ico
|
|||
|
||||
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript
|
||||
|
||||
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
||||
|
||||
FileETag MTime Size
|
||||
|
||||
ExpiresActive On
|
||||
|
|
|
@ -4,5 +4,3 @@ Header unset Set-Cookie
|
|||
|
||||
ProxyPass {{localpath}} {{proxyurl}}{{remotepath}}
|
||||
ProxyPassReverse {{localpath}} {{proxyurl}}{{remotepath}}
|
||||
|
||||
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
||||
|
|
|
@ -8,5 +8,3 @@ Header unset Set-Cookie
|
|||
|
||||
ProxyPass {{localpath}} {{proxyurl}}{{remotepath}}
|
||||
ProxyPassReverse {{localpath}} {{proxyurl}}{{remotepath}}
|
||||
|
||||
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
||||
|
|
|
@ -10,5 +10,3 @@ ProxyPassReverse /accounts/user/dogencert http://fas1/
|
|||
|
||||
ProxyPass {{localpath}} {{proxyurl}}{{remotepath}}
|
||||
ProxyPassReverse {{localpath}} {{proxyurl}}{{remotepath}}
|
||||
|
||||
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
||||
|
|
|
@ -26,8 +26,6 @@ RewriteRule ^([a-z0-9-]+)\.id\.fedoraproject\.org/.* {{proxyurl}}/openid/id/$1/
|
|||
RewriteCond %{HTTPS} off
|
||||
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]
|
||||
|
||||
Header always add Strict-Transport-Security "max-age=15768000; preload"
|
||||
|
||||
|
||||
RewriteRule ^(.+) - [PT]
|
||||
|
||||
|
|
|
@ -37,5 +37,3 @@ Header unset Set-Cookie
|
|||
|
||||
ProxyPass {{localpath}} {{proxyurl}}{{remotepath}}
|
||||
ProxyPassReverse {{localpath}} {{proxyurl}}{{remotepath}}
|
||||
|
||||
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
RewriteEngine On
|
||||
RewriteCond %{HTTPS} off
|
||||
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [NE]
|
||||
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
||||
{% else %}
|
||||
Include "conf.d/{{ name }}/*.conf"
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue