Traefik not routing my API Endpoint

i've route - / - /health but when i access path /health, is always go to root path - https://traefik.dokploy.enigmacamp.com/apps/traefik/v2/health > should return "Ok, Health" but i get "Hello, World"
No description
No description
No description
No description
7 Replies
TY
TY7mo ago
Just taking a guess here: what if you changed line 15 from /health to /apps/traefik/v2/health
jdnielss
jdnielssOP7mo ago
nothing, always to root path /
jdnielss
jdnielssOP7mo ago
even i request to /api/v2, the return alwyas use root path
No description
jdnielss
jdnielssOP7mo ago
huh nice
No description
jdnielss
jdnielssOP7mo ago
i put
middlewares:
strip-prefix:
stripPrefix:
prefixes:
- /apps/traefik/v2
middlewares:
strip-prefix:
stripPrefix:
prefixes:
- /apps/traefik/v2
to traefik config 😐
Siumauricio
Siumauricio7mo ago
Lol, just remove the path and set as /
jdnielss
jdnielssOP7mo ago
I need that, cus i’ve many apps in 1 subdomain like /app/v1 /app/v2 /app/v3 In 1 subdomain, i dont know its best pratice or not

Did you find this page helpful?