Forum Discussion
hooleylist
Oct 10, 2008Cirrostratus
Hi tpearson,
You can use HTTP::header replace Host "newhost.example.com" to replace the existing Host header:
when HTTP_REQUEST {
Check if host is an IP address
if {[HTTP::host] eq "10.198.239.248"}{
Replace host header
HTTP::header replace Host "newhost.example.com"
}
}
There isn't a host header in responses, so you shouldn't need to modify the response headers or content.
Aaron