Forum Discussion
Roger_Grannum_7
Nimbostratus
Feb 23, 2007http and https redirect
I have version 4.6.4 and was having a hard time finding documentation on iRules. New to the process and was wondering how to create a rule 2 rules.
1) Have traffic that is going to http sent to...
Martin_Machacek
Mar 01, 2007Historic F5 Account
Roger,
your suggested rule is syntactically incorrect. Assuming that you really want to send request with URIs starting with "/happy" to partnersite_pool and the rest to mysite_pool, your rule should look like this:
rule {
if(http_uri starts_with "/happy") {
use pool partnersite_pool
}
else {
use pool mysite_pool
}
}To answer your first question: HTTP and HTTPS requests are best separated by configuring separate virtual servers for port 80 (HTTP) and port 443 (HTTPS). Please refer to BIG-IP Reference Guide for details. Keep in mind that iRules cannot evaluate HTTPS requests unless the SSL connection is terminated (decrypted) by the BIG-IP.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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