Hello All,
I have problem probably with my middleware.
I would like to have a phpmyadmin in a subpath /myadmin.
It works until the login, but when user logged in it redirects me back to domain/index.php and that if course gives a 404.
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
annotations:
kubernetes.io/ingress.class: traefik
name: phpmyadmin
namespace: default
spec:
entryPoints: []
routes:
- kind: Rule
match: Host(`domain`) && PathPrefix(`/phpmyadmin`)
middlewares:
- name: replace-path-phpmyadmin
namespace: default
priority: 0
services:
- kind: Service
name: phpmyadmin
namespace: default
port: 80
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: replace-path-phpmyadmin
namespace: default
spec:
replacePathRegex:
regex: ^/phpmyadmin(.*)
replacement: ${1}
What I did wrong ? thanks