Updated Apache configuration file with REMOTE_ADDR.

Monotone-Parent: e614ca6146bb5052469a2b393909509aa081acc0
Monotone-Revision: a42c5d851619b9189a0c4a611c29eba535c00e93

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-10-28T13:49:15
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle committed 2010-10-28 13:49:15 +00:00
1 parent e5dbe26e96
commit ee939e315d
1 file changed
+7 -1
+7 -1
View File
@@ -46,10 +46,16 @@ ProxyPass /SOGo http://127.0.0.1:20000/SOGo retry=0
# RequestHeader set "x-webobjects-remote-user" "%{REMOTE_USER}e"
RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
RequestHeader set "x-webobjects-remote-host" "127.0.0.1"
RequestHeader set "x-webobjects-remote-host" %{REMOTE_HOST}e env=REMOTE_HOST
AddDefaultCharset UTF-8
Order allow,deny
Allow from all
</Proxy>
## We use mod_rewrite to pass remote address to the SOGo proxy.
# The remote address will appear in SOGo's log files and in the X-Forward
# header of emails.
RewriteEngine On
RewriteRule ^/SOGo/(.*)$ /SOGo/$1 [env=REMOTE_HOST:%{REMOTE_ADDR},PT]