sunheyi6 opened a new issue, #11003: URL: https://github.com/apache/apisix/issues/11003
### Description in wsl2 ubuntu20.04.6 LTS follow this (url)[https://apisix.apache.org/zh/docs/apisix/plugins/proxy-rewrite/] ```cmd shy@LAPTOP-OJLO0M82:~$ curl http://127.0.0.1:9180/apisix/admin/routes/1 \ 'X-A> -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' > { > "methods": ["GET"], > "uri": "/test/index.html", > "plugins": { > "proxy-rewrite": { > "uri": "/test/home.html", > "host": "iresty.com", > "headers": { > "set": { > "X-Api-Version": "v1", > "X-Api-Engine": "apisix", > "X-Api-useless": "" > }, > "add": { > "X-Request-ID": "112233" > }, > "remove":[ > "X-test" > ] > } > } > }, > "upstream": { > "type": "roundrobin", > "nodes": { > "127.0.0.1:80": 1 > } > } > }'; {"value":{"status":1,"priority":0,"upstream":{"type":"roundrobin","scheme":"http","pass_host":"pass","nodes":{"127.0.0.1:80":1},"hash_on":"vars"},"methods":["GET"],"plugins":{"proxy-rewrite":{"headers":{"add":{"X-Request-ID":"112233"},"set":{"X-Api-Version":"v1","X-Api-Engine":"apisix","X-Api-useless":""},"remove":["X-test"]},"uri":"/test/home.html","use_real_request_uri_unsafe":false,"host":"iresty.com"}},"create_time":1709710455,"uri":"/test/index.html","id":"1","update_time":1709712928},"key":"/apisix/routes/1"} shy@LAPTOP-OJLO0M82:~$ curl -X GET http://127.0.0.1:9080/test/index.html <html> <head><title>502 Bad Gateway</title></head> <body> <center><h1>502 Bad Gateway</h1></center> <hr><center>openresty</center> <p><em>Powered by <a href="https://apisix.apache.org/">APISIX</a>.</em></p></body> </html> ``` ### Environment - APISIX version (3.8.0): - Operating system (Linux 4ca1af1ab4e7 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 GNU/Linux`): - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): - etcd version, if relevant ({"hostname":"4ca1af1ab4e7","id":"f0f9478b-8de6-483e-abc6-156b66e2c638","version":"3.8.0","etcd_version":"3.5.0","boot_time":1709711440}): - APISIX Dashboard version, if relevant: - Plugin runner version, for issues related to plugin runners: - LuaRocks version, for installation issues (run `luarocks --version`): -- 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]
