Angelo_102265
Jul 23, 2009Nimbostratus
Http Rewrite to 1 domain
I need to create an irule that is listening on 1 VIP and changes all incoming requests to a single domain to the server pool.
www.cname1.com/images -> F5 VIP -> www.static.com/images -> pool of servers.
The incoming Domain can be anything but it will always need to be sent back to the webservers as www.static.com/images
would the following work
when HTTP_REQUEST {
set http_host HTTP::host
switch http_host {
{HTTP::redirect "http://www.static.com/"}
}
}