Forum Discussion
juhiverma17_320
May 09, 2017Nimbostratus
I have a query here. The irules works when your default pool is down. I.e it displays sorry page for the main URL. I've many L7 URI pools in my application, So the requirement is that for every URI also it should display the sorry page.
i.e if the main URL is https://abc.apple.com and it has a L7 URI for /payment which which has different set of nodes.
I want the even https://abc.apple.com/payment should also display the sorry page when the URI pool is down.
Can someone suggest what should be the "if" condition, to take in account all pools of an application?
- Vijay_EMay 09, 2017Cirrus
You can try something like:
when LB_SELECTED { if { [active_members [LB::server pool]] == 0 } { HTTP::respond 200 content " " } }