Replies: 2 comments
-
I found the following hint in the documentation [1]: [...] However, if the same plugin is configured locally on multiple objects, such as on Route, Service, Consumer, Consumer Group, or Plugin Config, only one copy of configuration is used as each non-global plugin is only executed once. Could this be related to my issue? I do not configure the same plugin for two objects but for two global rules. The statement above actually excludes global rules, but I actually see the same behaviour. [1] https://apisix.apache.org/docs/apisix/terminology/plugin/#plugins-merging-precedence |
Beta Was this translation helpful? Give feedback.
-
I moved the question to StackOverflow: https://stackoverflow.com/questions/77873362/configure-multiple-global-rules-in-apisix-standalone-mode |
Beta Was this translation helpful? Give feedback.
-
I am playing with standalone mode on v3.7.0 and would like to establish two global rules based on the response-rewrite plugin as catch-all for client errors (4xx) and server errors (5xx).
The global rules section of my current configuration in
apisix.yaml
looks like this:Each rule works individually, but I somehow I cannot make them work together. Only the second rule (id 2) seems to be active. So far, I haven't found any example with more than one global rule.
What is wrong with my configuration? Or could I combine both rules in a single one?
Beta Was this translation helpful? Give feedback.
All reactions