Forum Discussion
cxcal_18687
Nimbostratus
Nov 13, 2008Failing iRule
I've been eye-balling this irule and figure out why its failing to execute when I use the irule for the VIP. It should redirect http to https. When I use the pool for the VIP it works fine for http. Any advice?
Also, is there any way to monitor the number of times a irule has been used. I know this is done in 9.x
"b rule show"
if (http_uri starts_with "/Rebate/" and not (http_header("WL-Proxy-SSL") == "true")) {
redirect to "https://www.site.com/%u"
}
else if (http_uri ends_with "/" and not (http_header("WL-Proxy-SSL") == "true")) {
redirect to "https://www.site.com/Rebate/%u"
}
else if (http_uri == "/" and not http_header("WL-Proxy-SSL") == "true") {
redirect to "https://www.site.com/Rebate/"
}
else {
use pool Rebate
}
- James_Quinby_46Historic F5 Accountcxcal -
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