Forum Discussion
2 Replies
Sort By
- HamishCirrocumulus
Untested (But syntactically correct), try this...
when HTTP_REQUEST { if { not ([HTTP::uri] equals "/net") } { log local0.debug "[HTTP::uri] is not permitted to site" HTTP::respond 404 } }
- Lee_SutcliffeNacreous
Give this one a try
when HTTP_REQUEST { if {[active_members myPool] > 0} { if {!([HTTP::uri] equals "/abc")} { HTTP::respond 404 content "my 404 error message" } } else { myPool has no active members HTTP::respond 505 content "my 505 error message" } }