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
Posts: 4
Joined: Tue Jul 02, 2019 10:10 pm

Traefik reverse proxy and redirects

Post by benfayers »

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

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

      prefix = "/VirtualRadar/"
      scheme = "https"
      Host = "vrs.[mydomain]"
      rule = "Host(`vrs.[mydomain]`)"
      service = "vrs"
      middleswares = ["vrsHeaders", "gotohttps"]
Posts: 2250
Joined: Fri Feb 17, 2012 3:20 am

Re: Traefik reverse proxy and redirects

Post by agw »

Sorry for the late reply.

I think the proxy setting in VRS modifies how it builds the redirection URL when a request comes in for a partial address. Looking at the code I think when it's set to reverse proxy it uses the endpoint address off the request, if it's a forward proxy it uses the domain specified in the request.

I think you might just need to flip the VRS proxy type from reverse proxy to forward proxy?
Post Reply