Forum Discussion
Born_7758
Jul 18, 2011Nimbostratus
Modify URI among other things
Hello Everyone, Here's what I am trying to do: I have a datagroup called payment_resp_1 When I receive a request I want to match it to the URIs in the datagroup, ...
Born_7758
Jul 19, 2011Nimbostratus
I tried playing with this a bit to include three datagroups and 3 pool members. When I try to click Update I get this message:
ine 11: [undefined procedure: elseif] [elseif {$line ne ""}{
HTTP::uri $uri_2
pool payment_resp member 10.48.52.66 8080
} ]
Here is the iRule
when HTTP_REQUEST {
set uri_1 [findclass [HTTP::path] $payment_resp_1A " "]
set uri_2 [findclass [HTTP::path] $payment_resp_1B " "]
set uri_3 [findclass [HTTP::path] $payment_resp_1C " "]
if {$line ne ""}{
HTTP::uri $uri_1
pool payment_resp member 10.48.52.58 8080
}
elseif {$line ne ""}{
HTTP::uri $uri_2
pool payment_resp member 10.48.52.66 8080
}
elseif {$line ne ""}{
HTTP::uri $uri_3
pool payment_resp member 10.48.52.77 8080
}
}
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