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.
pull/211/head
Zhang Huangbin 2016-06-03 19:14:50 +08:00
parent 8225480029
commit 93f0678a5e
1 changed files with 2 additions and 2 deletions

View File

@ -72,8 +72,8 @@ ProxyPass /SOGo http://127.0.0.1:20000/SOGo retry=0
## and do not forget to enable the headers module
<IfModule 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: