Hello dear friends of Traefik.
Once again I have problems with a configuration.
95% of the time it's because I just don't see the little errors. Once it took me half a day to realise that I had used ' instead of `. I'm getting old.
This time I would like to forward a directory to another server. So I installed a web service and also PGadmin to manage the database and I want Traefik to redirect it accordingly.
Here is my dynamic V2 configuration.
http: routers: mywebservice-pgadmin-router-https: entryPoints: - "https" rule: "Host(`mywebservice.mydomain.net`) && PathPrefix(`/pgadmin`)" service: service-mywebservice-pgadmin priority: 1 tls: certResolver: letsEncrypt mywebservice-router-https: entryPoints: - "https" rule: "Host(`mywebservice.mydomain.net`)" service: service-mywebservice priority: 2 tls: certResolver: letsEncrypt services: service-mywebservice: loadBalancer: serversTransport: mywebservice-transport servers: - url: "https://myinternwebservice.local:8443" service-mywebservice-pgadmin: loadBalancer: serversTransport: mywebservice-transport servers: - url: "http://myinternwebservice.local:5050" serversTransports: mywebservice-transport: insecureSkipVerify: true disableHTTP2: true serverName: "myinternwebservice.local"
Unfortunately it does not work. It is still redirected on the web service, where of course the directory does not exist. There is also no error message.
I used PathPrefix because I understood that you don't have to use regular expressions to forward all the following characters to pgadmin.
Where have I done something wrong here?