Forum Discussion
Eddie_27920
Nimbostratus
Feb 03, 2015iRule help please, newbie
Hi I have the existing iRule that works just fine with checking the host name. On the last elseif when looking for abc.gov host name I also want to look for https protocol to send it to a seperate po...
StephanManthey
Nacreous
Feb 04, 2015There were wrong parentheses:
when HTTP_REQUEST {
set host [string tolower [HTTP::host]]
if { $host eq "solidwaste.dev.mesaaz.gov"} {
pool solidwaste.dev.mesaaz.gov
} elseif { $host contains "swfm1.dev.mesaaz.gov"} {
pool swfm1.mesaaz.gov
} elseif { ($host contains "swfm2.dev.mesaaz.gov") && ([TCP::local_port] == 443) } {
pool swfm2.mesaaz.gov_443
} else {
pool swfm2.mesaaz.gov
}
}
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