File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
tests/fixture/confs-stdlocal Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ __IS_VERIFYCERTS_COMMENTED__ <VirtualHost *:${PUBLIC_HTTP_PORT}>
480
480
__PREFER_HTTPS_COMMENTED__<IfDefine PUBLIC_HTTPS_PORT>
481
481
__PREFER_HTTPS_COMMENTED__ RewriteCond %{HTTPS} off
482
482
__PREFER_HTTPS_COMMENTED__ RewriteCond %{HTTP_HOST} ^${BASE_FQDN}$
483
- __PREFER_HTTPS_COMMENTED__ RewriteRule ^/?(.*) https://${PUBLIC_FQDN }:${PUBLIC_HTTPS_PORT}/$1 [R,L]
483
+ __PREFER_HTTPS_COMMENTED__ RewriteRule ^/?(.*) https://${BASE_FQDN }:${PUBLIC_HTTPS_PORT}/$1 [R,L]
484
484
__PREFER_HTTPS_COMMENTED__
485
485
__PREFER_HTTPS_COMMENTED__ RewriteCond %{HTTPS} off
486
486
__PREFER_HTTPS_COMMENTED__ RewriteCond %{HTTP_HOST} ^${PUBLIC_FQDN}$
@@ -781,6 +781,14 @@ __IS_VERIFYCERTS_COMMENTED__ <VirtualHost *:${PUBLIC_HTTP_PORT}>
781
781
SSLCertificateKeyFile __MIG_CERTS__/${PUBLIC_ALIAS_FQDN}/server.key
782
782
SSLCertificateChainFile __MIG_CERTS__/${PUBLIC_ALIAS_FQDN}/server.ca.pem
783
783
784
+ <IfModule mod_headers.c>
785
+ # Use HSTS if enabled
786
+ __HSTS_COMMENTED__ Header always set Strict-Transport-Security "max-age=31536000"
787
+ # As a precaution apply proxy limit in line with security advisory on:
788
+ # http://www.apache.org/security/asf-httpoxy-response.txt
789
+ RequestHeader unset Proxy early
790
+ </IfModule>
791
+
784
792
# SSL Engine Switch:
785
793
# Enable/Disable SSL for this virtual host.
786
794
SSLEngine on
Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ Alias /status-events.json "/home/mig/state/wwwpublic/status-events.json"
480
480
<IfDefine PUBLIC_HTTPS_PORT>
481
481
RewriteCond %{HTTPS} off
482
482
RewriteCond %{HTTP_HOST} ^${BASE_FQDN}$
483
- RewriteRule ^/?(.*) https://${PUBLIC_FQDN }:${PUBLIC_HTTPS_PORT}/$1 [R,L]
483
+ RewriteRule ^/?(.*) https://${BASE_FQDN }:${PUBLIC_HTTPS_PORT}/$1 [R,L]
484
484
485
485
RewriteCond %{HTTPS} off
486
486
RewriteCond %{HTTP_HOST} ^${PUBLIC_FQDN}$
@@ -781,6 +781,14 @@ Alias /status-events.json "/home/mig/state/wwwpublic/status-events.json"
781
781
SSLCertificateKeyFile /home/mig/certs/${PUBLIC_ALIAS_FQDN}/server.key
782
782
SSLCertificateChainFile /home/mig/certs/${PUBLIC_ALIAS_FQDN}/server.ca.pem
783
783
784
+ <IfModule mod_headers.c>
785
+ # Use HSTS if enabled
786
+ Header always set Strict-Transport-Security "max-age=31536000"
787
+ # As a precaution apply proxy limit in line with security advisory on:
788
+ # http://www.apache.org/security/asf-httpoxy-response.txt
789
+ RequestHeader unset Proxy early
790
+ </IfModule>
791
+
784
792
# SSL Engine Switch:
785
793
# Enable/Disable SSL for this virtual host.
786
794
SSLEngine on
You can’t perform that action at this time.
0 commit comments