Traefik reverse proxy and redirects
Posted: Fri Jul 05, 2019 7:58 pm
I have "Reverse" proxy mode set in the VRS Web Admin settings.
If I go to vrs.[mydomain]/VirtualRadar/desktop.html it works perfectly fine, however If i go to vrs.[mydomain]/VirtualRadar I am redirected to 192.168.0.213:8080/VirtualRadar/desktop.html
What can I do to stop this and make it redirect to the domain properly?
Here is my Traefik config for this subdomain:
Thanks,
Ben
If I go to vrs.[mydomain]/VirtualRadar/desktop.html it works perfectly fine, however If i go to vrs.[mydomain]/VirtualRadar I am redirected to 192.168.0.213:8080/VirtualRadar/desktop.html
What can I do to stop this and make it redirect to the domain properly?
Here is my Traefik config for this subdomain:
Code: Select all
[http.middlewares]
[http.middlewares.vrsPrefix.AddPrefix]
prefix = "/VirtualRadar/"
[http.middlewares.gotohttps.redirectscheme]
scheme = "https"
[http.middlewares.vrsHeaders.headers]
Host = "vrs.[mydomain]"
[http.routers.vrsRouter]
rule = "Host(`vrs.[mydomain]`)"
service = "vrs"
middleswares = ["vrsHeaders", "gotohttps"]
[http.routers.vrsRouter.tls]
Ben