28 lines
907 B
Plaintext
28 lines
907 B
Plaintext
# see: https://docs.nextcloud.com/server/stable/Nextcloud_Server_Administration_Manual.pdf
|
|
|
|
# 5.12.3 Service Discovery
|
|
#
|
|
# The redirects for CalDAV or CardDAV does not work if Nextcloud is running behind a reverse proxy.
|
|
# The recommended solution is that your reverse proxy does the redirects.
|
|
#
|
|
# Apache2:
|
|
# ========
|
|
#
|
|
# RewriteEngine On
|
|
# RewriteRule ^/\.well-known/carddav https://%{SERVER_NAME}/remote.php/dav/ [R=301,L]
|
|
# RewriteRule ^/\.well-known/caldav https://%{SERVER_NAME}/remote.php/dav/ [R=301,L]
|
|
#
|
|
#
|
|
# NGINX:
|
|
# ======
|
|
#
|
|
# location /.well-known/carddav {
|
|
# return 301 $scheme://$host/remote.php/dav;
|
|
# }
|
|
# location /.well-known/caldav {
|
|
# return 301 $scheme://$host/remote.php/dav;
|
|
# }
|
|
# or
|
|
# rewrite ^/\.well-known/carddav https://$server_name/remote.php/dav/ redirect;
|
|
# rewrite ^/\.well-known/caldav https://$server_name/remote.php/dav/ redirect;
|