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/07 02:36:43 UTC

[incubator-apisix] branch master updated: fix: replace `location /robots.txt ` with `location =/robots.txt ` for admin page. (#1807)

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 588d46f  fix: replace `location /robots.txt ` with `location =/robots.txt ` for admin page. (#1807)
588d46f is described below

commit 588d46ff18248f0bc616425bc162e9ba4862f4da
Author: wonglend <gk...@qq.com>
AuthorDate: Tue Jul 7 10:36:32 2020 +0800

    fix: replace `location /robots.txt ` with `location =/robots.txt ` for admin page. (#1807)
---
 bin/apisix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/apisix b/bin/apisix
index 4d7857a..780b744 100755
--- a/bin/apisix
+++ b/bin/apisix
@@ -326,7 +326,7 @@ http {
             try_files $uri $uri/index.html /index.html =404;
         }
 
-        location /robots.txt {
+        location =/robots.txt {
             return 200 'User-agent: *\nDisallow: /';
         }
     }