From a7dfe1ed06155ffce3eacfd1f3e8cd6c25eaecf1 Mon Sep 17 00:00:00 2001 From: Mayeul Cantan Date: Mon, 23 Jan 2023 09:36:57 +0100 Subject: [PATCH] Merge http verb handling --- conf/nginx.conf | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 17a1159..d6b7aa9 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -117,13 +117,7 @@ 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; - } - if ($request_method ~ ^PATCH$) { + if ($request_method ~ ^(PUT|DELETE|PATCH)$) { rewrite ^ __PATH__/index.php$request_uri last; } try_files $uri / __PATH__/index.php$request_uri;