Firstsawyou edited a comment on issue #3252: URL: https://github.com/apache/apisix/issues/3252#issuecomment-758448754
Corresponding to the following use cases: ``` location /apisix/admin { proxy_pass http://192.168.12.1:80000/apisix/admin; } ``` We can try proxy-rewrite plugin to achieve. Note that the uri of the route cannot use `/apisix/admin/*`, it needs to be changed here. Example: ```sehll curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "methods": ["GET"], "uri": "/admin/*", "plugins": { "proxy-rewrite": { "uri": "/admin", "scheme": "http" } }, "upstream": { "type": "roundrobin", "nodes": { "192.168.12.1:80000": 1 } } }' ``` You can try this example. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org