Change .well-known regex

This commit is contained in:
hoellen 2021-12-05 21:27:34 +01:00
parent 8c9f6b6cb7
commit a5d934b8a9

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;
}