frankkoornstra opened a new issue, #2839:
URL: https://github.com/apache/apisix-dashboard/issues/2839
### Issue description
I've created a route with the `proxy-rewrite` plugin enabled and the config
for a `uri_regex`, which is as follows:
```json
{
"uris": [
"/spotinfo/adressen/basic/*"
],
"name": "apisix_spotinfo_spotinfo-adressen-basic",
"desc": "Created by apisix-ingress-controller, DO NOT modify it manually",
"plugins": {
"proxy-rewrite": {
"headers": {
"set": {
"authorization": "basic <REDACTED>"
}
},
"host": "<REDACTED TARGET HOST>",
"regex_uri": [
"^/spotinfo/adressen/basic/(.*)",
"/adressen/$1"
],
"scheme": "https",
"use_real_request_uri_unsafe": false
}
},
"upstream_id": "aead1dfe",
"labels": {
"managed-by": "apisix-ingress-controller"
},
"status": 1
}
```
When I fire off `GET https://<REDACTED
HOST>/spotinfo/adressen/basic/ows?service=WMS&version=1.3.0&request=GetCapabilities`
and I look in the gateway logs, I see
```
10.244.0.217 - <REDACTED> [17/Jul/2023:15:07:31 +0000] <REDACTED SOURCE
HOST> "GET
/spotinfo/adressen/basic/ows?service=WMS&version=1.3.0&request=GetCapabilities
HTTP/1.1" 404 173 0.082 "-" "Apache-HttpClient/4.5.14 (Java/17.0.7)"
5.9.34.18:443 404 0.075 "https://<REDACTED TARGET
HOST>/spotinfo/adressen/basic/ows?service=WMS&version=1.3.0&request=GetCapabilities"
```
It doesn't seem to pick up the `uri_regex`. I wanted to see if it picked up
changes in the `proxy-rewrite` at all so I changed the `host` and it does pick
that up. I've also tried using just `uri` instead of `regex_uri` just to see if
I could make something simpler work first but it's the same, it does not change
anything in the target uri.
### Expected behavior
Use the `uri` and `uri_regex` configurations and change the target uri
### How to Reproduce
Posted the config
### Screenshots
_No response_
### Environment
- Helm chart version: 2.1.0
- apisix version: 3.4.0
- OS: whatever the Helm chart uses
- OpenResty / Nginx version: whatever the Helm chart uses
- etcd version: 3.5.0
- apisix-dashboard version: 3.0.0
### Additional context
_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]