You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by me...@apache.org on 2020/07/03 13:18:13 UTC

[incubator-apisix] branch master updated: bugfix: return `404 Not Found` when the dashboard folder is empty. (#1799)

This is an automated email from the ASF dual-hosted git repository.

membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 794b1eb  bugfix: return `404 Not Found` when the dashboard folder is empty.  (#1799)
794b1eb is described below

commit 794b1eb65e01e0e15d3dcd9cf1f0d74166e9b246
Author: xxm404 <46...@users.noreply.github.com>
AuthorDate: Fri Jul 3 21:18:05 2020 +0800

    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 d2d6f90..4d7857a 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 %}