Forum Discussion
How many layers is too many layers of Virtual Servers?
Surely the 2nd layer itself could return a 404 as its default action, so you wouldn't need a 3rd layer?
- bibilthaysoseJun 13, 2022Altocumulus
Hi Gym,
Yea, in short you're right, but the issue I was having was that I couldn't figure out how to determine in an iRule whether a valid pool had been selected (or a redirect response been sent) by one of the endpoint policies. What I ended up doing was adding the following condition to the iRule:
when HTTP_REQUEST { set selected_pool [lindex [LB::server] 0] if { [HTTP::has_responded] } { return } if { $selected_pool ends_with "default_pool" } { HTTP::respond 404 -version auto content [ifile get custom_404.html] noserver } }
where the "default_pool" is the default pool of the VS.
Is that what you mean by "default action"? Or is there some simpler way to do this?
Thanks,
Greg
Recent Discussions
Related Content
* 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