Forum Discussion
Thieß_Rathjen_1
Nimbostratus
Oct 12, 2006redirect problem with https
Hi there,
i have a problem with the following iRule (i am quite new with iRules):
when HTTP_REQUEST {
evaluate characters as lower case Pass characters back to server in lower case
set my_uri [string tolower [HTTP::uri]]
if { $my_uri starts_with "/konto" } {
redirect to konto on matching URI
HTTP::redirect "https://[HTTP::host]/de/konto/"
log redirect
log local0. "Host is [HTTP::host], URI is [HTTP::uri]. Redirecting to konto"
}
}
If someone types http://www.mydomain.com/konto redirect works fine, but the URL ist https://www.mydomain.com/konto it does not (Page not found). Can someone tell me why? Does someone have a better solution? BTW: SSL is terminated on the LTM.
Thanks, Thiess.
- hoolio
Cirrostratus
I assume you have two virtual servers configured on the same IP address: one on port 80 and 443. Do you have the same rule applied to both VIPs? If so, it looks like the rule should be working fine. - Thieß_Rathjen_1
Nimbostratus
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