Forum Discussion
dkraut_23236
Nimbostratus
Sep 02, 2008newbie needs irule help....
ok, I'm completely new to irules so break out the coloring book and crayons for me! lol.
I'm trying to create a rule that takes the incoming URI from the client and appends a numbe...
dkraut_23236
Nimbostratus
Sep 09, 2008ok all, thanks for all the replies. After numerous iterations, etc. I've come up with the following rule. However, one of our guys took a look at this and could not understand how it would actually load balance? Will this dog hunt?
when HTTP_REQUEST {
if { ([HTTP::host] eq "BMCMTR:5282") } {
HTTP::header replace "Host" "BMCMTR01:5282"
pool bmcmtr member 10.1.1.14 80
}
if { ([HTTP::host] eq "BMCMTR:5382") } {
HTTP::header replace "Host" "BMCMTR02:5282"
pool bmcmtr member 10.1.1.15 80
}
if { ([HTTP::host] eq "BMCMTR:5382") } {
HTTP::header replace "Host" "BMCMTR03:5282"
pool bmcmtr member 10.1.1.16 80
}
if { ([HTTP::host] eq "BMCMTR:5382") } {
HTTP::header replace "Host" "BMCMTR04:5282"
pool bmcmtr member 10.1.1.17 80
}
}
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