From 00b04039ea802e73a191fbacbd10bde114f255e8 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Mon, 14 Dec 2020 12:28:30 +0100 Subject: [PATCH] fix 405 error --- conf/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index d4581c2..e9f864a 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -121,6 +121,12 @@ location ^~ __PATH__/ { } 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; }