Forum Discussion
meena_60183
Nimbostratus
Nov 10, 2008redirect after SSL termination
Hi All,
I have a scenario where the webserver only responds if there is a particular URI, say WebEdition. I also have SSL termination configured for this VS. The web server only listens...
Colin_Walker_12
Nov 10, 2008Historic F5 Account
The iRule will automatically be applied after the decryption. The events you're using (HTTP events) are processed after the BIG-IP has already decrypted the traffic.
As far as an iRule to redirect everything coming to www.example.com without the /WebEdition URI, it looks like you want something like:
when HTTP_REQUEST {
if { [HTTP::host] eq "www.example.com" } {
if { (!([HTTP::uri] starts_with "/WebEdition")) or ([TCP::local_port] != 443) } {
HTTP::redirect "https://www.example.com/WebEdition"
}
}
}
That should work for both encrypted and plaintext traffic, assuming they're both feeding into the VIP that has this iRule on it.
Colin
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