I have Traefik serving up multiple docker services (listmonk, matrix, matrixmmr) with SSL. They are listed like service.domain.com. So listmonk.domain.com, matrix.domain.com, matrixmmr.domain.com. Each have their own docker internal IP.
I'm trying to make Traefik route to a particular host depending on the PATH requested.
So if requesting matrix.domain.com/_matrix I would like to pass that to "matrix.domain.com"
If requesting matrix.domain.com/_matrix/media I would like to pass that internally to the docker host "matrixmmr.domain.com"
Im aware of using PathPrefix, have used it before, but how do I re-direct based on the host and path from the beginning of the request from Traefik? Do I put them in the main Traefik docker service labels?
Thanks for any help