Ajout des redirections sur les URL /.well-known

tags/ipasserelle-groupware-0.2.37-1
Daniel Berteaud 12 years ago
parent 7a22b911f2
commit 4623951a1c
  1. 6
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAccess
  2. 4
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAppleWorkArround

@ -13,6 +13,12 @@
ProxyPass /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo ProxyPass /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo
ProxyPassReverse /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo ProxyPassReverse /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo
SetEnvIf Host (.*) REQUEST_HOST=$1 SetEnvIf Host (.*) REQUEST_HOST=$1
# iOS auto discovery
RedirectMatch ^/principals/users/(.*)$ /SOGo/dav/$1
RedirectMatch ^/principals/$ /SOGo/dav/
RedirectMatch ^/.well-known/(caldav|carddav)$ /SOGo/dav/
<Location /SOGo> <Location /SOGo>
order deny,allow order deny,allow
deny from all deny from all

@ -16,7 +16,9 @@ if (($sogoStatus eq 'enabled') && ($appleStatus eq 'enabled')){
ProxyPreserveHost On ProxyPreserveHost On
ProxyPassInterpolateEnv On ProxyPassInterpolateEnv On
RewriteEngine On RewriteEngine On
RewriteRule /principals(.*) /\$1 [L,R] RedirectMatch ^/principals/users/(.*)\$ /\$1
RedirectMatch ^/principals/\$ /
RedirectMatch ^/.well-known/(caldav|carddav)\$ /
RewriteRule /SOGo/dav(.*) /\$1 [L,R] RewriteRule /SOGo/dav(.*) /\$1 [L,R]
ProxyPass / http://127.0.0.1:$sogoPort/SOGo/dav/ interpolate ProxyPass / http://127.0.0.1:$sogoPort/SOGo/dav/ interpolate

Loading…
Cancel
Save