From 400dd26b7d1409fce0b2e5f8445af86170054fd4 Mon Sep 17 00:00:00 2001 From: Gordon Messmer Date: Fri, 17 Mar 2017 12:08:54 -0700 Subject: [PATCH] Set the HTTP_HOST environment variable to enable preservation of the client's base URL. --- Apache/SOGo.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/Apache/SOGo.conf b/Apache/SOGo.conf index b4c01ab80..d52b978aa 100644 --- a/Apache/SOGo.conf +++ b/Apache/SOGo.conf @@ -72,6 +72,7 @@ ProxyPass /SOGo http://127.0.0.1:20000/SOGo retry=0 ## and do not forget to enable the headers module RequestHeader set "x-webobjects-server-port" "443" + SetEnvIf Host (.*) HTTP_HOST=$1 RequestHeader set "x-webobjects-server-name" "%{HTTP_HOST}e" env=HTTP_HOST RequestHeader set "x-webobjects-server-url" "https://%{HTTP_HOST}e" env=HTTP_HOST