pgermain_71805
Mar 02, 2010Nimbostratus
Rewrite Host and Select Different SSL Profile
Hello,
We have a current URL and cert combo that doesn't work because the web servers behind it got moved, but I need to figure out how to write an iRule on the LTM to get it working again, albeit it with some rewrites on the F5 that are transparent to the customer.
We had a site, service.service.com and an associated cert. It went away, but some customers still hit the URL.
I want to...
1) Rewrite the host name that gets sent to the internal web server. I think I found something for that already. The following rule should rewrite the host name that gets sent internally while keeping the customer in the dark about the name change.
when HTTP_REQUEST {
if { [HTTP::header "Host"] eq "service.service.com" } {
HTTP::header replace "Host" "service2.service.com"
}
}
2) Prevent a cert error.
The only way I can think of to do this is to take the previous rule and also have it use a different SSL Client profile than the default on the virtual server.
I haven't found this second part. If it exists, I would like to have it in one big iRule.
If anybody knows how to do this, it would help us greatly.
Thanks,
Paul
PS. This URL is an example and not the real URL.