From 78b5548d206800d25a6c43e2cf0fd0e9dd611f7f Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Fri, 3 Jun 2016 19:14:50 +0800 Subject: [PATCH] Supports multiple web domains in Apache. Using "%(HTTP_HOST)e" will make default Apache config file support multiple web domains, no change required by sys admin. --- Apache/SOGo.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Apache/SOGo.conf b/Apache/SOGo.conf index a4c90c87d..b4c01ab80 100644 --- a/Apache/SOGo.conf +++ b/Apache/SOGo.conf @@ -72,8 +72,8 @@ 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" -# RequestHeader set "x-webobjects-server-name" "yourhostname" -# RequestHeader set "x-webobjects-server-url" "https://yourhostname" + 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 ## When using proxy-side autentication, you need to uncomment and ## adjust the following line: