soulbird commented on issue #6535: URL: https://github.com/apache/apisix/issues/6535#issuecomment-1061267546
You can use proxy-rewrite plugin, like: ``` curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "methods": ["GET"], "uri": "/test/index.html", "plugins": { "proxy-rewrite": { "uri": "/test/home.html", "scheme": "http", "host": "iresty.com", "headers": { "X-My-Header": "MyName" } } }, "upstream": { "type": "roundrobin", "nodes": { "127.0.0.1:80": 1 } } }' ``` You can check the documentation for more details. https://github.com/apache/apisix/blob/master/docs/zh/latest/plugins/proxy-rewrite.md -- 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]
