You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/05/26 09:56:28 UTC

[GitHub] [apisix] sandy420 opened a new issue #4312: bug: 启用proxy-mirror后正常的请求报404

sandy420 opened a new issue #4312:
URL: https://github.com/apache/apisix/issues/4312


   ### Issue description
   
   ### Environment
   
   Bug report without environment information will be ignored or closed.
   
   * apisix version (cmd: `apisix version`):2.5
   * OS (cmd: `uname -a`):centos 7.3
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): openresty/1.19.3.1
   * etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):3.4.14
   * apisix-dashboard version, if have: 2.6
   * luarocks version, if the issue is about installation (cmd: `luarocks --version`):
   
   ### Minimal test code / Steps to reproduce the issue
   
   Bug report without steps to reproduce will be ignored or closed.
   
   1.在配置路由时启用了proxy-mirror后,无法请求报404
   路由配置的json如下:
   {
   "action": "get",
   "node": {
   "key": "/apisix/routes/356497226769367867",
   "value": {
   "upstream_id": "355766670582612795",
   "id": "356497226769367867",
   "methods": [
   "GET",
   "POST",
   "PUT",
   "DELETE",
   "PATCH",
   "HEAD",
   "OPTIONS",
   "CONNECT",
   "TRACE"
   ],
   "plugins": {
   "proxy-rewrite": {
   "host": "abc.test.com"
   },
   "proxy-mirror": {
   "host": "http://10.10.1.1:8081"
   }
   },
   "hosts": [
   "test.test.com"
   ],
   "status": 1,
   "create_time": 1622018505,
   "update_time": 1622020347,
   "name": "carpool-operation",
   "uris": [
   "/test*"
   ]
   }
   },
   "count": "1"
   }
   
   
   请求http://abc.test.com/test  返回404
   ### What's the expected result?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] Firstsawyou commented on issue #4312: bug: 启用proxy-mirror后正常的请求报404

Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #4312:
URL: https://github.com/apache/apisix/issues/4312#issuecomment-850095078


   @sandy420 
   Local test did not show 404. You should check whether apisix has log information records, as @tokers  said, providing context information for 404 requests.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #4312: bug: 启用proxy-mirror后正常的请求报404

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #4312:
URL: https://github.com/apache/apisix/issues/4312#issuecomment-849503091


   @sandy420 Is therey any error logs in your apisix when the 404 was triggered. Also, please pastes some contexts about the 404 requests.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] starsz commented on issue #4312: bug: 启用proxy-mirror后正常的请求报404

Posted by GitBox <gi...@apache.org>.
starsz commented on issue #4312:
URL: https://github.com/apache/apisix/issues/4312#issuecomment-848807668


   Hi @sandy420 .What's the response body when enable the `proxy-mirror` plugin.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #4312: bug: After enabling proxy-mirror, normal requests report 404

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #4312:
URL: https://github.com/apache/apisix/issues/4312#issuecomment-866452530


   Closed as lack of response.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander closed issue #4312: bug: After enabling proxy-mirror, normal requests report 404

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #4312:
URL: https://github.com/apache/apisix/issues/4312


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] sandy420 commented on issue #4312: bug: 启用proxy-mirror后正常的请求报404

Posted by GitBox <gi...@apache.org>.
sandy420 commented on issue #4312:
URL: https://github.com/apache/apisix/issues/4312#issuecomment-849285059


   The response returned by the mirror request is ignored.so,I don’t know what it is.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] Firstsawyou commented on issue #4312: bug: 启用proxy-mirror后正常的请求报404

Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #4312:
URL: https://github.com/apache/apisix/issues/4312#issuecomment-848657357


   Okay, let me check.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org