Replies: 1 comment
-
Hey @janyyy, I'm here to help you with any bugs, questions, or contributions you have. Let's dive in and tackle this issue together! I couldn't find a direct equivalent of Nginx's For the local t = require("lib.test_admin").test
local code, body = t('/apisix/admin/routes/1',
ngx.HTTP_PUT,
[[{
"methods": ["GET"],
"plugins": {
"proxy-rewrite": {
"uri": "/index.html"
}
},
"upstream": {
"nodes": {
"127.0.0.1:1980": 1
},
"type": "roundrobin"
},
"uri": "/"
}]]
)
if code >= 300 then
ngx.status = code
end
ngx.say(body) For more complex scenarios, such as handling different paths with different configurations, you might need to use the Unfortunately, I couldn't find a direct solution for the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
怎么模拟nginx这个配置呀?
Beta Was this translation helpful? Give feedback.
All reactions