aliasHeadersStrategy breaks 'traefik healthcheck --ping'
Author: baragoonCreated Sep 14, 2026Updated Sep 17, 2026
Labelskind/bug/possiblearea/healthcheckarea/clicontributor/wanted
Welcome!
- Yes, I've searched similar issues on GitHub and didn't find any.
- Yes, I've searched similar issues on the Traefik community forum and didn't find any.
What did you do?
after adding to container env
environment:
TRAEFIK_ENTRYPOINTS_TRAEFIK_HTTP_ALIASHEADERSSTRATEGY: keep (reject or delete)
my container (I'm using one from the dhi.io) with healthcheck section:
healthcheck:
interval: 1m
retries: '5'
start_period: 30s
test: ["CMD", "traefik", "healthcheck", "--ping"]
timeout: 10s
unable to reach "healthy" state, manual run of healthcheck test is also failing:
# docker exec -it traefik traefik healthcheck --ping
Error calling healthcheck: Head "http://:8080/ping": dial tcp :8080: connect: connection refused
I tried with keep/reject/delete for TRAEFIK_ENTRYPOINTS_TRAEFIK_HTTP_ALIASHEADERSSTRATEGY, but container is always goes to "unhealthy". The only fix is to remove TRAEFIK_ENTRYPOINTS_TRAEFIK_HTTP_ALIASHEADERSSTRATEGY
What did you see instead?
NAMES STATUS
traefik Up 4 minutes (health: unhealthy)
What version of Traefik are you using?
Version: 3.7.13
What is your environment & configuration?
environment:
TRAEFIK_ENTRYPOINTS_TRAEFIK_HTTP_ALIASHEADERSSTRATEGY: keep (reject or delete)
Add more configuration information here.
If applicable, please paste the log output in DEBUG level
No response
Source: traefik/traefik