Forum Discussion
Gym
Jun 13, 2022Cirrus
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