Hello i have an origin server proxed by traefik that in some cases gives a 307 redirect, to a totally different scheme/host/port actually this redirect is not followed by traefik but directly given to the client...
So basically actually the client ask for https://host1/path123
(served by traefik)
and gets what the origin server responds (host2 is reachable only by traefik, not the client):
HTTP/1.1 307 TEMPORARY_REDIRECT
Location: http://host2:1234/path456
i just want that traefik internally follows the 307 redirect given by the origin retriving the final resource for the client.. how can this be accomplished?
PS. the configuration is pretty basic, just struggling finding an options that can help reaching the goal but did not found anything helpful..
routers:
foobar:
entryPoints:
- websecure
service: myorigin
rule: Host(`host1`)
tls:
certresolver: blabla
services:
myorigin:
loadBalancer:
servers:
- url: https://originserver