Forum Discussion
Michael_Yates
Sep 30, 2011Nimbostratus
Hi Jason,
Yes you can do that with a HTTP::header replace of the HTTP::host value. There is an example here:
http://devcentral.f5.com/wiki/iRules.HTTP__host.ashx
when HTTP_REQUEST {
if { !([string tolower [HTTP::host]] equals "www.foo.com") } {
HTTP::header replace Host "www.bar.com"
You may or may not need to redirect the traffic to a different pool
depending on your applicaiton setup
pool alternate.website.pool
}
}
Hope this helps.