Traefik reverse proxy and redirects

Are you having trouble getting Virtual Radar Server installed and running? If so then this is the place to ask about it.
Post Reply
benfayers
Posts: 1
Joined: Tue Jul 02, 2019 10:10 pm

Traefik reverse proxy and redirects

Post by benfayers » 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:

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]
Thanks,
Ben

Post Reply