Forum Discussion
Tony2020
Nimbostratus
Aug 30, 2018Redirect to pool based on URI not working
Hi All,
I am having issues with a redirect within an Irule.
Here is what I am trying to do.
If users coming from the internet (not matching datagroup 10.0.0.0/8) and they go to
"/test" ...
youssef1
Cumulonimbus
Aug 30, 2018Try this,
and if you use several pool on your vs you can set a profil oneconnect:
when HTTP_REQUEST {
if { [class match [IP::client_addr] equals DG-INTERNAL-IP] || [string tolower [HTTP::uri]] starts_with "/test"} {
pool TESTPOOL_443
} else {
HTTP::redirect "http://maintenance.test.com"
}
}
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