Forum Discussion
Jason_L_40779
Nimbostratus
Sep 04, 2010iRule hostname
I have a question and am fairly new to irules. I have a web application using a one armed configuration. This was setup when I took the environment over and kind of am stuck with it. The developers...
Chris_Miller
Altostratus
Sep 04, 2010the iRule is pretty simple...just depends on how many host names and how many pool names you have.
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] contains "x" } {
pool x member 1.1.1.1 80 }
else { pool x member 1.1.1.2 80 }
}
Just replace contains x and your pool name/member with what you're trying to send.
http://devcentral.f5.com/wiki/default.aspx/iRules/pool.html has some good detail on the pool command.
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