2007-07-20 23:03:42 +02:00
|
|
|
Alias /SOGo.woa/WebServerResources/ \
|
2011-10-17 21:02:12 +02:00
|
|
|
/usr/lib/GNUstep/SOGo/WebServerResources/
|
2009-09-11 16:38:43 +02:00
|
|
|
Alias /SOGo/WebServerResources/ \
|
2011-10-17 21:02:12 +02:00
|
|
|
/usr/lib/GNUstep/SOGo/WebServerResources/
|
|
|
|
|
|
|
|
<Directory /usr/lib/GNUstep/SOGo/>
|
|
|
|
AllowOverride None
|
2014-09-08 21:25:21 +02:00
|
|
|
|
|
|
|
<IfVersion < 2.4>
|
|
|
|
Order deny,allow
|
|
|
|
Allow from all
|
|
|
|
</IfVersion>
|
|
|
|
<IfVersion >= 2.4>
|
|
|
|
Require all granted
|
|
|
|
</IfVersion>
|
2012-05-24 17:38:24 +02:00
|
|
|
|
|
|
|
# Explicitly allow caching of static content to avoid browser specific behavior.
|
|
|
|
# A resource's URL MUST change in order to have the client load the new version.
|
|
|
|
<IfModule expires_module>
|
|
|
|
ExpiresActive On
|
|
|
|
ExpiresDefault "access plus 1 year"
|
|
|
|
</IfModule>
|
2011-10-17 21:02:12 +02:00
|
|
|
</Directory>
|
2009-09-11 16:38:43 +02:00
|
|
|
|
|
|
|
## Uncomment the following to enable proxy-side authentication, you will then
|
|
|
|
## need to set the "SOGoTrustProxyAuthentication" SOGo user default to YES and
|
|
|
|
## adjust the "x-webobjects-remote-user" proxy header in the "Proxy" section
|
|
|
|
## below.
|
2013-06-18 17:50:28 +02:00
|
|
|
#
|
|
|
|
## For full proxy-side authentication:
|
2009-09-11 16:38:43 +02:00
|
|
|
#<Location /SOGo>
|
|
|
|
# AuthType XXX
|
|
|
|
# Require valid-user
|
|
|
|
# SetEnv proxy-nokeepalive 1
|
|
|
|
# Allow from all
|
|
|
|
#</Location>
|
2013-06-18 17:50:28 +02:00
|
|
|
#
|
|
|
|
## For proxy-side authentication only for CardDAV and GroupDAV from external
|
|
|
|
## clients:
|
|
|
|
#<Location /SOGo/dav>
|
|
|
|
# AuthType XXX
|
|
|
|
# Require valid-user
|
|
|
|
# SetEnv proxy-nokeepalive 1
|
|
|
|
# Allow from all
|
|
|
|
#</Location>
|
2009-09-11 16:38:43 +02:00
|
|
|
|
|
|
|
ProxyRequests Off
|
|
|
|
SetEnv proxy-nokeepalive 1
|
|
|
|
ProxyPreserveHost On
|
2010-10-12 18:31:47 +02:00
|
|
|
|
|
|
|
# When using CAS, you should uncomment this and install cas-proxy-validate.py
|
|
|
|
# in /usr/lib/cgi-bin to reduce server overloading
|
|
|
|
#
|
|
|
|
# ProxyPass /SOGo/casProxy http://localhost/cgi-bin/cas-proxy-validate.py
|
|
|
|
# <Proxy http://localhost/app/cas-proxy-validate.py>
|
|
|
|
# Order deny,allow
|
|
|
|
# Allow from your-cas-host-addr
|
|
|
|
# </Proxy>
|
|
|
|
|
2018-04-27 16:58:18 +02:00
|
|
|
# Redirect / to /SOGo
|
|
|
|
#RedirectMatch ^/$ https://mail.yourdomain.com/SOGo
|
|
|
|
|
2014-02-20 03:57:01 +01:00
|
|
|
# Enable to use Microsoft ActiveSync support
|
|
|
|
# Note that you MUST have many sogod workers to use ActiveSync.
|
2014-02-04 17:19:33 +01:00
|
|
|
# See the SOGo Installation and Configuration guide for more details.
|
2014-01-10 20:02:32 +01:00
|
|
|
#
|
2014-02-20 03:57:01 +01:00
|
|
|
#ProxyPass /Microsoft-Server-ActiveSync \
|
|
|
|
# http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync \
|
|
|
|
# retry=60 connectiontimeout=5 timeout=360
|
2014-01-10 20:02:32 +01:00
|
|
|
|
2016-02-23 17:56:28 +01:00
|
|
|
ProxyPass /SOGo http://127.0.0.1:20000/SOGo retry=0
|
|
|
|
|
2009-11-12 19:30:21 +01:00
|
|
|
<Proxy http://127.0.0.1:20000/SOGo>
|
2018-08-28 18:30:37 +02:00
|
|
|
## Adjust the following to your configuration
|
|
|
|
## and make sure to enable the headers module
|
2016-04-12 19:02:36 +02:00
|
|
|
<IfModule headers_module>
|
2009-09-11 16:38:43 +02:00
|
|
|
RequestHeader set "x-webobjects-server-port" "443"
|
2017-03-17 20:08:54 +01:00
|
|
|
SetEnvIf Host (.*) HTTP_HOST=$1
|
2016-06-03 13:14:50 +02:00
|
|
|
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
|
2009-09-11 16:38:43 +02:00
|
|
|
|
|
|
|
## When using proxy-side autentication, you need to uncomment and
|
|
|
|
## adjust the following line:
|
2013-06-18 17:50:28 +02:00
|
|
|
RequestHeader unset "x-webobjects-remote-user"
|
|
|
|
# RequestHeader set "x-webobjects-remote-user" "%{REMOTE_USER}e" env=REMOTE_USER
|
2009-09-11 16:38:43 +02:00
|
|
|
|
2009-11-12 19:30:21 +01:00
|
|
|
RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
|
2016-04-12 19:02:36 +02:00
|
|
|
</IfModule>
|
2009-11-12 19:30:21 +01:00
|
|
|
|
2010-03-24 16:09:17 +01:00
|
|
|
AddDefaultCharset UTF-8
|
|
|
|
|
2009-09-11 16:38:43 +02:00
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
2009-01-22 16:25:20 +01:00
|
|
|
</Proxy>
|
2010-10-28 15:49:15 +02:00
|
|
|
|
2014-02-20 03:57:01 +01:00
|
|
|
# For Apple autoconfiguration
|
2013-09-12 16:14:47 +02:00
|
|
|
<IfModule rewrite_module>
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteRule ^/.well-known/caldav/?$ /SOGo/dav [R=301]
|
2015-12-11 20:02:59 +01:00
|
|
|
RewriteRule ^/.well-known/carddav/?$ /SOGo/dav [R=301]
|
2013-09-12 16:14:47 +02:00
|
|
|
</IfModule>
|
|
|
|
|