diff --git a/nginx.conf.d/dav.conf b/nginx.conf.d/dav.conf index cc89126..864e0c8 100644 --- a/nginx.conf.d/dav.conf +++ b/nginx.conf.d/dav.conf @@ -1,2 +1,15 @@ -rewrite ^/\.well-known/carddav https://$server_name/remote.php/dav/ permanent; -rewrite ^/\.well-known/caldav https://$server_name/remote.php/dav/ permanent; +location = /robots.txt { + allow all; + log_not_found off; + access_log off; +} + +location = /.well-known/carddav { + return 301 $scheme://$host/remote.php/dav; +} + +location = /.well-known/caldav { + return 301 $scheme://$host/remote.php/dav; +} + +location /.well-known/acme-challenge { }