Forum Discussion
Kai_Wilke
Apr 03, 2019MVP
Hi JemW,
a very minimalistic iRule will look like below...
when HTTP_REQUEST {
set low_uri [string tolower [HTTP::uri]]
if { $low_uri starts_with "/xyz"} then {
pool Pool_xyz
} elseif { $low_uri starts_with "/x"} then {
pool Pool_x
} elseif { $low_uri starts_with "/abc"} then {
HTTP::path "/scripts[HTTP::path]"
pool Pool_abc
}
}
Note: Depending on how the web application is made, you may need to modify the HTTP responses too. If the application references
in its HTML/CSS/etc., you will need to adjust those references to /scripts/abc
before sending the response to your clients. Be warned, it will be time consuming to adjust complex applications.../abc
Cheers, Kai