From 8ed5bd4eb590852662e6d920d5ffe132f9854be1 Mon Sep 17 00:00:00 2001 From: Glenn Date: Sun, 5 May 2024 19:05:33 +0200 Subject: [PATCH] fix config for nginx --- nginx.conf.d/dav.conf | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) 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 { }