Forum Discussion
F5beginner_3849
Nimbostratus
Apr 16, 2019Bad certificate assigned to Host
Hello,
I have a virtual server, which have more certificates.
I´m using SNI to differentiate URL hosts.
Let´s say I have two domains: exmaple.com and test.com and Certificates have defined...
Andy_McGrath
Cumulonimbus
Apr 16, 2019Regarding you second part if using an iRule you could do something like the following to update the host name:
when HTTP_REQUEST {
if {!([HTTP::host] starts_with "example.com") and !([HTTP::host] starts_with "test.com")} {
HTTP::redirect "https://[join [lreplace [split [getfield [HTTP::host] : 1] "."] 0 0] "."][HTTP::uri]"
}
}
This will only work on a HTTP connection, on HTTPS the client would still get an error before the redirect occurs.
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