Location HTTP response header rewriting

For example, nitass.ddns.net is origin FQDN. proxy-2.nitass.com is LB FQDN. The origin returns 301 redirect with http://nitass.ddns.net/newlocation but user expects http://proxy-2.nitass.com/newlocation.

# curl -I http://159.60.140.120/oldlocation -H 'host:proxy-2.nitass.com'

HTTP/1.1 301 Moved Permanently

date: Wed, 03 Apr 2024 10:00:37 GMT

location: http://nitass.ddns.net/newlocation

content-type: text/html; charset=iso-8859-1

x-envoy-upstream-service-time: 535

server: volt-adc

x-volterra-location: pa4-par

connection: close

transfer-encoding: chunked

  • Nitass
  • Apr 5 2024
  • Attach files