mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Merge pull request #549 from MayeulC/PATCH-verb
nginx.conf: support PATCH method
This commit is contained in:
commit
c0078dbcdc
1 changed files with 1 additions and 4 deletions
|
@ -117,10 +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;
|
rewrite ^ __PATH__/index.php$request_uri last;
|
||||||
}
|
}
|
||||||
try_files $uri / __PATH__/index.php$request_uri;
|
try_files $uri / __PATH__/index.php$request_uri;
|
||||||
|
|
Loading…
Add table
Reference in a new issue