Forum Discussion
squintr_86994
Nimbostratus
Feb 29, 2008HTTPS rewrite host?
I'm new to irules and I'm hoping someone can help me out.
We're trying to prevent certificate errors by rewriting the host part with the FQDN so that it matches the name on the certificate (in the event that users access the website internally by the simple name of say "webmail"). If I create an irule to do this..eg:
when HTTP_REQUEST {
if {[getfield [HTTP::host] ":" 1] ne "website.domain.com"} {
HTTP::redirect https://website.domain.com[HTTP::uri]
}
}
It seems that it hits the cert before it hits the irule (and this giving an error about the name not matching). Any suggestions?
- Nicolas_Menant
Employee
Hi,
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