Forum Discussion
jack_10574
Nimbostratus
Sep 15, 2014Forward the request to specific pool url
Hi all
i have a requirement during maintenance window , it need to have an irule with when having http request to the https://www.test.com/abc and http://www.test.com/def
F5 will forward t...
Thomas_Gobet
Nimbostratus
Sep 16, 2014Hi Jack,
You will find below the iRule you need :
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "www.test.com"}{
if {([string tolower [HTTP::uri]] starts_with "/abs") or ([string tolower [HTTP::uri]] starts_with "/def")}{
HTTP::uri /maintenance.html
pool poolname member 10.1.1.1 80
}
}
}
You have to replace pool name value with the good one, it should work as you expected.
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