mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-24 19:58:54 +00:00
Updated Apache configuration file for Debian with REMOTE_ADDR.
Monotone-Parent: f7ef63bb68e8e8783c8d8407769bfa45805ad9dd Monotone-Revision: f6a0d4f0515b71825efc7da5aecd91b5596f64bf Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-11-23T22:35:32 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
157c41d433
commit
3e9cd67ece
1 file changed
+7
-1
@@ -52,10 +52,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-remote-user" "%{REMOTE_USER}e"
|
||||||
|
|
||||||
RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
|
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
|
AddDefaultCharset UTF-8
|
||||||
|
|
||||||
Order allow,deny
|
Order allow,deny
|
||||||
Allow from all
|
Allow from all
|
||||||
</Proxy>
|
</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]
|
||||||
Reference in new issue
Block a user