thor533 commented on issue #9183:
URL: https://github.com/apache/apisix/issues/9183#issuecomment-1487829995

   > How did you determine that the ip-restriction plugin wasn't executed 
first? Could it be that the ip-restriction plugin was executed, but it was not 
intercepted successfully?
   
   I've only configured the basic-auth and ip-restriction plug-ins, and they 
both work, but I want ip-restriction to work first. I've configured the 
parameters according to the documentation, "_meta": {"priority": 100}, but the 
basic-auth is executed first,
   My route configuration is as follows:
   
   {
   "id": "453027477904687809",
   "create_time": 1679555018,
   "update_time": 1679999874,
   "uri": "/xubin/",
   "name": "测试测试22",
   "priority": 1,
   "methods": [
   "GET",
   "POST",
   "PUT",
   "DELETE",
   "PATCH",
   "HEAD",
   "OPTIONS",
   "CONNECT",
   "TRACE"
   ],
   "plugins": {
   "basic-auth": {
   "_meta": {
   "priority": 2
   },
   "disable": true
   },
   "ip-restriction": {
   "_meta": {
   "priority": 100
   },
   "disable": false,
   "whitelist": [
   "192.168.88.61"
   ]
   },
   "proxy-rewrite": {
   "regex_uri": [
   "^/xubin(/|$)(.)",
   "/$2"
   ]
   }
   },
   "upstream": {
   "nodes": [
   {
   "host": "192.168.88.66",
   "port": 9001,
   "weight": 1
   }
   ],
   "retries": 15,
   "timeout": {
   "connect": 1,
   "send": 1,
   "read": 9
   },
   "type": "roundrobin",
   "scheme": "http",
   "pass_host": "pass",
   "keepalive_pool": {
   "idle_timeout": 60,
   "requests": 1000,
   "size": 320
   },
   "retry_timeout": 10
   },
   "labels": {
   "1": "1"
   },
   "status": 1
   }


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to