Now if i do a curl http://localhost/auth/123 the request is routed to the echo-auth container, so far so good. But the request that the auth container sees has the /auth prefix still attached.
Now i want to remove this prefix for the echo-api container, but as soon as i do this, the requests are no longer routed to the echo-api container, instead they are catched by the echo container.
This is not what I'm expecting from this config, compare this caddy compose:
Hi, yes i have the /auth container as a control group here, This container does not have its prefix stripped.
Also in the caddy example the prefix is not stripped as i use handle and not handle_path.
If you test both compose deployments and test them side-by-side you'll see they are the same for /auth (Prefix is not stripped)
But they differ for /api.
With caddy the /api prefix will get stripped correctly, but with traefik it will route to the echo container instead
With this configuration the page loads but is white. Inspecting the page source, it does load some code. URL is https://ipaddress/lldap
If I change the rule by removing the && PathPrefix(`/lldap`) the URL updates to https://ipaddress/login and the page loads fully. Inspecting the page source is identical to before.
It seems if you change the path so that the rule no longer matches the page won't work. Is this correct and functioning as designed? Or perhaps due to the service that's running the page and how it's designed?
I've also tried several other middlewares combinations with no luck.
Not every web application supports a custom external path (using PathPrefix() and potentially stripPrefix), instead a sub-domain per service is best practice.
Gotcha, was just playing around with a new config at home and trying to get some internal things loading through IP rather then through dns. Thanks for the reply.