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 20, 2011Cirrostratus
If you have a different destination for each URI, you could use the original example I posted and a single datagroup:
Datagroup line sample:
/old_uri1 /new_uri1 ip1 port1
/PaymentResponse1.jsf /CSU/PaymentResponse.jsf 10.48.52.58 8080
And the iRule:
when HTTP_REQUEST {
set line [findclass [HTTP::path] $::uri_class]
if {$line ne ""}{
HTTP::uri [lindex $line 0]
pool payment_resp member [lindex $line 1] [lindex $line 2]
}
}
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