Forum Discussion
fiveeuros_22972
Nimbostratus
Oct 19, 2015Load-balanced call to executable on web server
Hi
We have a pair of web servers serving an internal application. They are sitting behind an F5 load balancer with cookie sessions enabled. As of now, only one of the servers is marked as active...
The_Bhattman
Nimbostratus
Nov 12, 2009Hi RGK,
Here is a simple one that blocks access based on hosts using a datagroup
class blocked_hosts {
"wwwa.example.com"
"wwwb.example.com"
"wwwc.example.com"
}
when HTTP_REQUEST {
if {[matchclass [HTTP::host] eq $::blocked_hosts ] } {
HTTP::respond 404
}
}
I hope this helps
CB