Forum Discussion
Alex_Tiplitsky_
Nimbostratus
Apr 12, 2005Multiple iRules for a Virtual + HTTP redirect
I currently have an iRool that' redirecting traffic to a certain pool:
when HTTP_REQUEST {
if { [HTTP::uri] contains "psreports" } {
pool CRMWEB_REPORTS
}
elseif { [HTTP::uri]...
Alex_Tiplitsky_
Nimbostratus
Apr 12, 2005Let me correct myself:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
redirect to "http://mycrm.xxx.com/psp/crmprd01/?cmd=login"
}
}
What I can't figure out is how to make both rules to work on the same Virtual...
Can I possibly combine them in one rule to look something like:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::redirect "http://mycrm.xxx.com/psp/crmprd01/?cmd=login"
}
elseif { [HTTP::uri] contains "psreports" } {
pool CRMWEB_REPORTS
}
elseif { [HTTP::uri] contains "PSOL" } {
pool CRMWEB_PSOL
} else {
pool CRMWEB
}
}
Your help is HIGHLY appreciated!
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