From cc036b94d924efd51c512858a07ef967d07568d4 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Tue, 4 Jul 2023 09:25:20 +0200 Subject: [PATCH] new: [apache] don't force ``X-Forwarded-Proto`` if already existent --- apache/lib/common | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apache/lib/common b/apache/lib/common index 9c329e4..fd9594c 100644 --- a/apache/lib/common +++ b/apache/lib/common @@ -720,7 +720,8 @@ $(__vhost_creds_statement "$cfg" "$dest" | prefix " ") $([ "$protocol" == "https" ] && echo " SSLProxyEngine On") -RequestHeader set "X-Forwarded-Proto" "$protocol" +SetEnvIf X-Forwarded-Proto "^$" forwarded_proto_not_set=true +RequestHeader set "X-Forwarded-Proto" "$protocol" env=forwarded_proto_not_set ## Fix IE problem (httpapache proxy dav error 408/409) SetEnv proxy-nokeepalive 1