Forum Discussion
Manoj_129792
Nov 04, 2016Nimbostratus
need help to write an IRULE.
Hello All,
I have two vips configured 148.x.x.228:443 and 148.x.x.228:80.
with 148.177.29.248:80 Irule "when HTTP_REQUEST { HTTP::redirect https://[HTTP::host][HTTP::uri] }" associated to r...
- Nov 04, 2016
Try this irule. Hope it will work as per requirement.
when HTTP_REQUEST { if { [active_members [LB::server pool]] == 0 } { HTTP::redirect "https://order360.jnjgateway.com/eIFU/CustomError.html" } else { HTTP::redirect "https://[HTTP::host][HTTP::uri]" } }
Samir_Jha_52506
Nov 04, 2016Noctilucent
Try this irule. Hope it will work as per requirement.
when HTTP_REQUEST {
if { [active_members [LB::server pool]] == 0 } {
HTTP::redirect "https://order360.jnjgateway.com/eIFU/CustomError.html" }
else { HTTP::redirect "https://[HTTP::host][HTTP::uri]" }
}
- Manoj_129792Nov 04, 2016Nimbostratus
do i need to define the name of pool in place of "server pool".
when HTTP_REQUEST { if { [active_members [LB::Site-148.x.x.x_4001]] == 0 } { HTTP::redirect "; } else { HTTP::redirect "https://[HTTP::host][HTTP::uri]" } }
- Samir_Jha_52506Nov 04, 2016Noctilucent
No need to define pool name, it will take default pool which is tagged to VIP. If you want then use below option.
if { [active_members POOL-NAME] == 0 }
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