JadeQin opened a new issue #4898:
URL: https://github.com/apache/apisix/issues/4898
### Issue description
I add a route like this:
```
{
"uris": ["/w1", "/w1/*"],
"name": "w1",
"methods": ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS",
"CONNECT", "TRACE"],
"host": "nuc.test.cn",
"plugins": {
"proxy-rewrite": {
"regex_uri": ["/w1", "/"]
}
},
"upstream_id": "369721630588404424",
"status": 1
}
```
When I access `http://nuc.test.cn:9080/w1` the log show `"GET / HTTP/1.1"`,
it looks good.
But when I access `http://nuc.test.cn:9080/w1/test1` the log show `"GET
//test1 HTTP/1.1"`, there is two /.
In nginx , it only config like this `proxy_pass http://user/;` , how can I
do it in apisix?
### Environment
- apisix version (cmd: `apisix version`): apache/apisix:2.8-alpine
- OS (cmd: `uname -a`):
- OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
- etcd version, if have (cmd: run `curl
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
- apisix-dashboard version, if have: apache/apisix-dashboard:2.7.1
- luarocks version, if the issue is about installation (cmd: `luarocks
--version`):
### Steps to reproduce
as above
### Actual result
as above
### Error log
none
### Expected result
_No response_
--
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]