Forum Discussion
Chris_Miller
Aug 24, 2010Altostratus
You aren't specifying the name of the header to replace....Are you trying to change both the host and the URI or just the host?
If just the host, this would work to rewrite the host header from test.comp.com to prod.comp.com.
when HTTP_REQUEST {
if { [string tolower[[HTTP::host]] eq "test.comp.com" } {
HTTP::header replace Host "prod.comp.com" } }