1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Merge http verb handling

This commit is contained in:
Mayeul Cantan 2023-01-23 09:36:57 +01:00 committed by GitHub
parent 466bb07d12
commit a7dfe1ed06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -117,13 +117,7 @@ location ^~ __PATH__/ {
} }
location ~ / { location ~ / {
if ($request_method ~ ^PUT$) { if ($request_method ~ ^(PUT|DELETE|PATCH)$) {
rewrite ^ __PATH__/index.php$request_uri last;
}
if ($request_method ~ ^DELETE$) {
rewrite ^ __PATH__/index.php$request_uri last;
}
if ($request_method ~ ^PATCH$) {
rewrite ^ __PATH__/index.php$request_uri last; rewrite ^ __PATH__/index.php$request_uri last;
} }
try_files $uri / __PATH__/index.php$request_uri; try_files $uri / __PATH__/index.php$request_uri;