Change .well-known regex

This commit is contained in:
hoellen 2021-12-05 21:27:34 +01:00
parent 11632128e4
commit 0b59268aa8

View File

@ -30,10 +30,10 @@ server {
access_log off;
}
location /.well-known {
location ^~ /.well-known {
location = /.well-known/carddav { return 301 $nc_proto://$host/remote.php/dav; }
location = /.well-known/caldav { return 301 $nc_proto://$host/remote.php/dav; }
location ^~ /.well-known { return 301 $nc_proto://$host/index.php$uri; }
location ^~ /.well-known { return 301 $nc_proto://$host/index.php$uri; }
try_files $uri $uri/ =404;
}