Traefik shows 404 on web components but 200 in the destination - Stack Overflow

admin2025-05-02  1

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:

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

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:

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

Share Improve this question asked Jan 2 at 11:39 EnolEnol 355 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

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.

转载请注明原文地址:http://www.anycun.com/QandA/1746122696a91987.html