404 page not found errors

I found that one has to add: - match: Host(traefik.domain.com) && (PathPrefix(/dashboard) || PathPrefix(/api))

and in the browser "http://traefik.domain.com/dashboard/" to get rid of the 404 page not found.