Forum Discussion
bibilthaysose
Altocumulus
Jun 08, 2022How many layers is too many layers of Virtual Servers?
I am trying to set up a multi-layered proxy in an F5 LTM. Layer 1 policy forwards requests to layer 2 virtual servers based on the first segment of the path, layer 2 policy then does more intensive ...
Gym
Cirrus
Jun 13, 2022Surely the 2nd layer itself could return a 404 as its default action, so you wouldn't need a 3rd layer?
bibilthaysose
Altocumulus
Jun 13, 2022Hi 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
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
