-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
Description
Issue description
apiVersion: apisix.apache.org/v2beta1
kind: ApisixRoute
metadata:
name: httpserver-route
namespace: test
spec:
http:
- name: rule1
match:
hosts:- local.httpbin.org
paths: - /*
plugins: - name: proxy-rewrite
enable: true
config:
regex_uri: ["^/test(/|$)(.*)", "/$2"] - name: jwt
enable: true - name: limit-req
enable: true
config:
rate: 1
burst: 2
rejected_code: 503
key_type: "var"
key: "remote_addr" - name: cors
enable: true
backends:- serviceName: nginx
servicePort: 80
- serviceName: nginx
- local.httpbin.org
limit-req Plugin doesn't work
Environment
- apisix version (cmd:
apisix version): - OS (cmd:
uname -a): - OpenResty / Nginx version (cmd:
nginx -Voropenresty -V): - etcd version, if have (cmd: run
curl http://127.0.0.1:9090/v1/server_infoto get the info from server-info API): - apisix-dashboard version, if have:
- the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
- luarocks version, if the issue is about installation (cmd:
luarocks --version):
Steps to reproduce
1
Actual result
web只看到了proxy-rewrite插件生效 limit-req没有生效
Error log
1
Expected result
No response
