Justin_Haggerty
Jun 14, 2007Nimbostratus
rewrite issue
Say our app behind our bigip answers up to www.xyz.com from the web. the server behind the bigip's hostname is actually www.abc.com. My current setup is working except for instances when people browse to say www.xyz.com/admin/ there browser then tries to load www.abc.com/admin/index.html. This eventually times out as www.abc.com isn't open to the world. What I'm looking to do is get that redirect to go to www.xyz.com/admin/index.html.
I wrote the following irule, but it doesn't seem to be working. They still get sent to abc.com.
when HTTP_REQUEST {
if { [HTTP::host] contains "abc.com" } {
HTTP::redirect "https://www.xyz.com/[HTTP::uri]"
}
}
Any help would be greatly appreciated.