This commit is contained in:
Stefan Wieczorek
2022-08-24 13:33:11 +02:00
parent 204abd2b62
commit a5e4e99f2c

View File

@@ -38,13 +38,10 @@ add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; prelo
location ^~ /.well-known { location ^~ /.well-known {
# The rules in this block are an adaptation of the rules # The rules in this block are an adaptation of the rules
# in `.htaccess` that concern `/.well-known`. # in `.htaccess` that concern `/.well-known`.
location = /.well-known/carddav { return 301 /remote.php/dav/; } location = /.well-known/carddav { return 301 /remote.php/dav/; }
location = /.well-known/caldav { return 301 /remote.php/dav/; } location = /.well-known/caldav { return 301 /remote.php/dav/; }
location /.well-known/acme-challenge { try_files $uri $uri/ =404; } location /.well-known/acme-challenge { try_files $uri $uri/ =404; }
location /.well-known/pki-validation { try_files $uri $uri/ =404; } location /.well-known/pki-validation { try_files $uri $uri/ =404; }
# Let Nextcloud's API for `/.well-known` URIs handle all other # Let Nextcloud's API for `/.well-known` URIs handle all other
# requests by passing them to the front-end controller. # requests by passing them to the front-end controller.
return 301 /index.php$request_uri; return 301 /index.php$request_uri;
@@ -62,7 +59,6 @@ location ^~ /.well-known {
{{settings}} {{settings}}
location / { location / {
rewrite ^ /index.php; rewrite ^ /index.php;
} }