diff options
author | Jonas Smedegaard <dr@jones.dk> | 2022-03-26 13:26:58 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2022-03-26 13:26:58 +0100 |
commit | 545cb9599721a6f277c70babeaa2a0acbf974c94 (patch) | |
tree | 64d4e364ecaaef63d1f1118970eb4adbf1af27c8 | |
parent | 4aeb5ac85ef149bd6e54a3829bb4cc8e0ecc306b (diff) |
fix snippet local-tls to use TLS_HOST (not TLSHOST)
-rw-r--r-- | apache2/conf-available/local-tls.conf | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/apache2/conf-available/local-tls.conf b/apache2/conf-available/local-tls.conf index 528d266..12e2c4a 100644 --- a/apache2/conf-available/local-tls.conf +++ b/apache2/conf-available/local-tls.conf @@ -1,19 +1,19 @@ -<IfDefine !_TLSHOST> +<IfDefine !_TLS_HOST> <IfDefine _HOST> - Define __TLSHOST - Define _TLSHOST ${_HOST} + Define __TLS_HOST + Define _TLS_HOST ${_HOST} </IfDefine> </IfDefine> <IfDefine !_TLS_KEY> - <IfDefine _TLSHOST> + <IfDefine _TLS_HOST> Define __TLS_CERT_CHAIN Define __TLS_KEY - Define _TLS_CERT_CHAIN /var/lib/dehydrated/certs/${_TLSHOST}/fullchain.pem - Define _TLS_KEY /var/lib/dehydrated/certs/${_TLSHOST}/privkey.pem + Define _TLS_CERT_CHAIN /var/lib/dehydrated/certs/${_TLS_HOST}/fullchain.pem + Define _TLS_KEY /var/lib/dehydrated/certs/${_TLS_HOST}/privkey.pem </IfDefine> </IfDefine> -<IfDefine _TLSHOST> +<IfDefine _TLS_HOST> <If "%{HTTPS} != 'on'"> RedirectMatch permanent ^(?!/.well-known/)(.*) https://${_HOST}$1 @@ -53,9 +53,9 @@ </IfDefine> -<IfDefine __TLSHOST> - Undefine _TLSHOST - Undefine __TLSHOST +<IfDefine __TLS_HOST> + Undefine _TLS_HOST + Undefine __TLS_HOST </IfDefine> <IfDefine __TLS_CERT_CHAIN> Undefine _TLS_CERT_CHAIN |