ecoupal-believe commented on issue #1669:
URL:
https://github.com/apache/apisix-ingress-controller/issues/1669#issuecomment-1461539931
You can apply something like that:
```
apiVersion: apisix.apache.org/v2
kind: ApisixPluginConfig
metadata:
name: my-plugin-config
spec:
plugins:
- config:
regex_uri:
- ^/[^/?]+/{0,1}(.*)
- /$1
enable: true
name: proxy-rewrite
```
An then attach it to your ingress:
```
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
k8s.apisix.apache.org/plugin-config-name: my-plugin-config
name: my-ingress
spec:
ingressClassName: apisix
rules:
- http:
paths:
- backend:
service:
name: my-service
port:
number: 80
path: /my-service
pathType: Prefix
```
--
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]