chisel icon indicating copy to clipboard operation
chisel copied to clipboard

Adding X-Forwarded-Host headers in reverse proxy

Open alejandroliu opened this issue 4 years ago • 1 comments

Can you add a X-Forwarded-Host header to reverse proxy functionality?

This can be used for the case that the backend web server has virtual hosts or to do http->https redirection tricks.

This can be achieved easily by adding in server.go after line 105:

r.Header.Add("X-Forwarded-Host", r.Host)

alejandroliu avatar Apr 15 '21 23:04 alejandroliu

that would be great !

lwiechec avatar Dec 19 '23 12:12 lwiechec