Brian_Mayer_841
Mar 04, 2008Nimbostratus
Host header replace not working....
Hey all,
We're trying to replace the host portion of URLs for one of our virtual servers if they match a certain host string. I found the example below and applied it to the virtual server - but it's not working.
when HTTP_REQUEST {
if { [HTTP::host] equals "www.example.com"} {
HTTP::header replace "Host" "example.company.com"
}
}
If I go to the URL using www.example.com, the HTTP request is simply forwarded to the site and the host portion remains www.example.com - not example.company.com.
Any ideas where to start troubleshooting?
Thanks,
B