meena_60183
Nov 10, 2008Nimbostratus
redirect 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 on port 80.
I have the following 4 scenarios
1. http://www.example.com -> redirect to -> https://www.example.com/WebEdition
2. https://www.example.com -> redirect to -> https://www.example.com/WebEdition
3. http://www.example.com/WebEdition redirect to https://www.example.com/WebEdition
4. https://www.example.com/WebEdition (no need for redirection and just decrypt the traffic and send clear text to the server).
I created couple of iRules but nothing seems to work and I always get "page cannot be displayed".
when HTTP_REQUEST {
if { [HTTP::uri] eq "/" } {
HTTP::redirect "https://www.example.com/WebEdition"
}
}
and I applied this to the http traffic.
I also tried
when HTTP_REQUEST {
if {[HTTP::host] equals "www.example.com" } {
HTTP::redirect https://www.example.com/WebEdition
}
}
Both are created after looking at some samples on this forum.
I am not sure how to apply the iRule to the https traffic since it will be encrypted. How can I ensure that it is applied after the decryption?
thanks,
Meena