Forum Discussion
Ram_T_S
Altostratus
Aug 29, 2018Help required to construct Irule for Source based Http redirection
Hi Team,
I need a help to construct the Irule for the following requirement.
We have a application called finance running in 2 different servers located on different location.
Site A:
...
youssef1
Cumulonimbus
Aug 29, 2018Hi,
Hope it can help you:
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr] equals 192.168.53.0/24] && !([active_members [LB::server pool]] < 1 ) } {
HTTP::redirect "https://site1.xyz.com/finance/home/?locale=en_uk"
}
elseif { ( [IP::addr [IP::client_addr] equals 192.168.1.0/21] or [IP::addr [IP::client_addr] equals 192.168.16.0/21] ) && !([active_members [LB::server pool]] < 1 ) } {
HTTP::redirect "https://site2.xyz.com/finance/home/?locale=en_uk"
} else {
default
}
}
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