summaryrefslogtreecommitdiff
path: root/apache2/conf-available/local-ssl.conf
diff options
context:
space:
mode:
Diffstat (limited to 'apache2/conf-available/local-ssl.conf')
-rw-r--r--apache2/conf-available/local-ssl.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/apache2/conf-available/local-ssl.conf b/apache2/conf-available/local-ssl.conf
index 8e30d50..7b2cabf 100644
--- a/apache2/conf-available/local-ssl.conf
+++ b/apache2/conf-available/local-ssl.conf
@@ -10,6 +10,8 @@
</IfDefine>
</IfDefine>
+<IfDefine _TLSHOST>
+
<If "%{HTTPS} == 'off'">
RedirectMatch permanent ^(?!/.well-known/)(.*) https://${_HOST}/$1
</If>
@@ -22,6 +24,7 @@
</IfDefine>
</IfModule>
+<IfModule mod_ssl.c>
<IfModule !mod_gnutls.c>
SSLEngine on
<IfDefine _TLS_KEY>
@@ -36,3 +39,6 @@
SSLOptions +StdEnvVars
</Directory>
</IfModule>
+</IfModule>
+
+</IfModule> # _TLSHOST