KNOX-464: Location headers have wrong hostname when used behind load balancer

(cherry picked from commit f1f4fa2239c2218405e19d65bb12f89ee31305e8)