Search code examples
traefik

Traefik shows 404 on web components but 200 in the destination


I have a traefik container with one rule to expose other container wirt p3x-redis (a gui for redis).

In the p3x container, I have this traefik labels: "traefik.http.routers.cache_ui.rule" = "PathPrefix(/cache_ui) || Path(/cache_ui)"

And I can see I get 200 when I nvaigate to my path but the aplication not load beacause I get a 404 in the components of the aplication:

enter image description here

As you can see in the picture, the path gets a 200 but when we are trying to load web components, I gets a 404 and the website not opens.

Can anybody helps me?

Thanks


Solution

  • GUI web apps usually need to be run with root path (/), as the initial page might load with a custom path, but it might require dependencies (scripts, images) from any (absolute) path. Therefore it's best practice to use a sub-domain per GUI service.

    If that doesn't help, share your full Traefik static and dynamic config. Maybe compare to simple Traefik example.