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

fix 405 error

This commit is contained in:
Kay0u 2020-12-14 12:28:30 +01:00
parent ba55919437
commit 00b04039ea
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -121,6 +121,12 @@ location ^~ __PATH__/ {
} }
location ~ / { location ~ / {
if ($request_method ~ ^PUT$) {
rewrite ^ __PATH__/index.php$request_uri last;
}
if ($request_method ~ ^DELETE$) {
rewrite ^ __PATH__/index.php$request_uri last;
}
try_files $uri / __PATH__/index.php$request_uri; try_files $uri / __PATH__/index.php$request_uri;
} }