Forum Discussion
CGI
Altostratus
Apr 25, 2012Replacing a ISA rule
Hi we have replaced a ISA server with a bigip ltm and i need to silently rewrite a uri and send it to another host (pool).
The uri collects data to do a overlay on a map, at the moment its not wo...
hoolio
Cirrostratus
Apr 25, 2012Hi Craig,
If you create a separate pool containing the server(s) for this URI, you can use an iRule like this:
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
switch -glob [HTTP::path] {
"/mapproxy/sparrzoner/*" {
pool map_pool
HTTP::path [string map -nocase {/MapProxy/sparrzoner/ /ArcGIS/rest/services/sparrzoner/MapServer/} [HTTP::path]]
}
default {
pool $default_pool
}
}
}
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
