Ajout des redirections sur les URL /.well-known
This commit is contained in:
parent
7a22b911f2
commit
4623951a1c
|
@ -13,6 +13,12 @@
|
|||
ProxyPass /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo
|
||||
ProxyPassReverse /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo
|
||||
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>
|
||||
order deny,allow
|
||||
deny from all
|
||||
|
|
|
@ -16,7 +16,9 @@ if (($sogoStatus eq 'enabled') && ($appleStatus eq 'enabled')){
|
|||
ProxyPreserveHost On
|
||||
ProxyPassInterpolateEnv 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]
|
||||
ProxyPass / http://127.0.0.1:$sogoPort/SOGo/dav/ interpolate
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user