Forum Discussion
SY
May 26, 2021Nimbostratus
Help with url redirect
I'm very new to F5 platform and need to work out how to do a url redirect for multiple backend servers i am assuming creating an irule would be the best way for this solution ? we currently ...
May 27, 2021
Hi SY,
You can use iRule or LTM Policy.
to pool:
when HTTP_REQUEST {
if { [HTTP::host] equals "trx.company.com" } {
switch -glob [HTTP::uri] {
"/abc*" { pool pool-abc }
"/def*" { pool pool-def }
}
}
}
to node:
when HTTP_REQUEST {
if { [HTTP::host] equals "trx.company.com" } {
switch -glob [HTTP::uri] {
"/abc*" { node 10.11.12.13 443 }
"/def*" { node 10.12.14.16 443 }
}
}
}
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