Made 2 changes to nginx.rst:

- Changed `try_files` for `/.well-known` to allow URIs that we don't handle and not pass them to our front-end controller
- Changed rule to match `/nextcloud/*` from regex rule to equivalent prefix rule
This commit is contained in:
Jivan Pal
2020-08-06 17:15:57 +01:00
parent cc79936a73
commit 66f7342c64

View File

@@ -137,6 +137,8 @@ webroot of your nginx installation. In this example it is
location /.well-known/carddav { return 301 /remote.php/dav/; }
location /.well-known/caldav { return 301 /remote.php/dav/; }
try_files $uri $uri/ =404;
}
# Rules borrowed from `.htaccess` to hide certain paths from clients
@@ -251,10 +253,10 @@ The configuration differs from the "Nextcloud in webroot" configuration above in
location /.well-known/carddav { return 301 /nextcloud/remote.php/dav/; }
location /.well-known/caldav { return 301 /nextcloud/remote.php/dav/; }
try_files $uri $uri/ /nextcloud/index.php$request_uri;
try_files $uri $uri/ =404;
}
location ~ ^/nextcloud($|/) {
location ^~ /nextcloud {
# set max upload size
client_max_body_size 512M;
fastcgi_buffers 64 4K;