Skip to content

Plugin doesn't work #6298

@Phoebus888

Description

@Phoebus888

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

limit-req Plugin doesn't work

Environment

  • apisix version (cmd: apisix version):
  • OS (cmd: uname -a):
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V):
  • etcd version, if have (cmd: run curl http://127.0.0.1:9090/v1/server_info to 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

image

web只看到了proxy-rewrite插件生效 limit-req没有生效

Error log

1

Expected result

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions