From 794b1eb65e01e0e15d3dcd9cf1f0d74166e9b246 Mon Sep 17 00:00:00 2001 From: xxm404 <46340314+xxm404@users.noreply.github.com> Date: Fri, 3 Jul 2020 21:18:05 +0800 Subject: [PATCH] bugfix: return `404 Not Found` when the dashboard folder is empty. (#1799) close #1794 --- bin/apisix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/apisix b/bin/apisix index d2d6f90badfb..4d7857ada722 100755 --- a/bin/apisix +++ b/bin/apisix @@ -323,7 +323,7 @@ http { alias dashboard/; - try_files $uri $uri/index.html /index.html; + try_files $uri $uri/index.html /index.html =404; } location /robots.txt { @@ -393,7 +393,7 @@ http { alias dashboard/; - try_files $uri $uri/index.html /index.html; + try_files $uri $uri/index.html /index.html =404; } {% end %}