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, ...
hooleylist
Jul 19, 2011Cirrostratus
Or if you are using the same node address and port for all the entries in the datagroup, you could change leave that out of the datagroup:
original_uri new_uri datagroup
/PaymentResponse1.jsf /CSU/PaymentResponse.jsf
when HTTP_REQUEST {
set uri [findclass [HTTP::path] uri_class]
if {$line ne ""}{
HTTP::uri $uri
node 10.48.52.58 8080
}
}
If you're on 9.4.3 or lower you'll want to add a $:: prefix to the datagroup name in the iRule.
Aaron
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