I can't seem to be able to achieve this.
It's not clear from the doc whether it should be working or not.
Using a docker-compose.yml, the config I tested is:
command:
[...]
- --ping=true
- --ping.manualrouting=true
[...]
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(`traefik.mydomain.org`)"
- "traefik.http.routers.ping.rule=Host(`traefik.mydomain.org`) && Path(`/ping`)"
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.tls.certresolver=le"
- "traefik.http.routers.traefik.entrypoints=websecure"
- "traefik.http.routers.ping.service=ping@internal"
- "traefik.http.routers.ping.tls.certresolver=le"
- "traefik.http.routers.ping.entrypoints=websecure"
But I always get a 404 when trying https://traefik.mydomain.org/ping
(where /dashboard works fine of course)