Forum Discussion
pgermain_71805
Nimbostratus
Mar 02, 2010Rewrite 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.
- hoolio
Cirrostratus
Hi Paul, - pgermain_71805
Nimbostratus
Thanks Aaron, - hoolio
Cirrostratus
At some point we'll be able to select the correct cert using a TLS extension. But until most browsers support it (or if you have a controlled client base), it's not practical to bother with. See this post for details:
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects