diff options
| author | Jonas Smedegaard <dr@jones.dk> | 2025-10-21 12:50:33 +0200 |
|---|---|---|
| committer | Jonas Smedegaard <dr@jones.dk> | 2025-10-21 12:50:33 +0200 |
| commit | a58546b5b71cdc060a6a98e0eb05c8d351e873b7 (patch) | |
| tree | 7a2640179d8d30c5b99f4baab85730500e8ced15 | |
| parent | 81e5cdfea08dfc1b0dd3c744b3706b4252607b3d (diff) | |
fix revive limit to alias host
| -rw-r--r-- | apache2/conf-available/local-alias-redirect.conf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apache2/conf-available/local-alias-redirect.conf b/apache2/conf-available/local-alias-redirect.conf index 0437d61..eafc2e8 100644 --- a/apache2/conf-available/local-alias-redirect.conf +++ b/apache2/conf-available/local-alias-redirect.conf @@ -1,6 +1,8 @@ +<If "%{HTTP_HOST} != %{SERVER_NAME}"> <IfDefine _TLS_HOST> RedirectMatch permanent ^(?!/.well-known/acme-challenge)(.*) https://${_HOST}$1 </IfDefine> <IfDefine !_TLS_HOST> RedirectMatch permanent ^(?!/.well-known/acme-challenge)(.*) http://${_HOST}$1 </IfDefine> +</If> |
