|
|
@ -1,3 +1,10 @@ |
|
|
|
|
|
location = /.well-known/carddav { |
|
|
|
|
|
return 301 https://$server_name#PATH#/remote.php/dav; |
|
|
|
|
|
} |
|
|
|
|
|
location = /.well-known/caldav { |
|
|
|
|
|
return 301 https://$server_name#PATH#/remote.php/dav; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
location #LOCATION# { |
|
|
location #LOCATION# { |
|
|
alias #DESTDIR#/; |
|
|
alias #DESTDIR#/; |
|
|
|
|
|
|
|
|
@ -25,10 +32,6 @@ location #LOCATION# { |
|
|
error_page 403 #PATH#/core/templates/403.php; |
|
|
error_page 403 #PATH#/core/templates/403.php; |
|
|
error_page 404 #PATH#/core/templates/404.php; |
|
|
error_page 404 #PATH#/core/templates/404.php; |
|
|
|
|
|
|
|
|
# Rules for served well-known paths |
|
|
|
|
|
rewrite ^#PATH#/.well-known/carddav #PATH#/remote.php/dav/ permanent; |
|
|
|
|
|
rewrite ^#PATH#/.well-known/caldav #PATH#/remote.php/dav/ permanent; |
|
|
|
|
|
|
|
|
|
|
|
# The following 2 rules are only needed for the user_webfinger app. |
|
|
# The following 2 rules are only needed for the user_webfinger app. |
|
|
# Uncomment it if you're planning to use this app. |
|
|
# Uncomment it if you're planning to use this app. |
|
|
#rewrite ^#PATH#/.well-known/host-meta #PATH#/public.php?service=host-meta last; |
|
|
#rewrite ^#PATH#/.well-known/host-meta #PATH#/public.php?service=host-meta last; |
|
|
|