Forum Discussion
Raymond_Morris_
Nimbostratus
Oct 27, 2005Redirect http to https based on URI
I would like to redirect traffic on my VIP to use HTTPS, but only when they use a specific URI. I have attempted this with the following rule:
if (http_uri contains "/administrative") {
redirect to "https://%h/%u"
log "matched host(" + http_host + "), uri(" + http_uri + ") by client(" + client_addr + ") : using WAHA_Admin"
}
else {
use pool WAHA_Admin
log "didn't match host(" + http_host + "), uri(" + http_uri + ") by client(" + client_addr + ") : using WAHA_Admin"
}
The result of this is what appears to be a loop. My question is, is this configuration supported?
I have been able to configure this successfully using 3 VIPs and then using rules to redirect traffic amoung them. Obviously this is sub-optimal.
Thanks,
- iControl is our Mangement API. I'd suggest you post this to the 4.x iRules forum.
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