Forum Discussion
Brad_Parker_139
Oct 19, 2015Nacreous
Give this a try:
when HTTP_REQUEST {
Look for a URI If found send back an HTTP 200
if { [HTTP::uri] equals "/about/health/status" } {
Send a 200 response with data
HTTP::respond 200 "X-Responce" "TestOk for client [getfield [IP::client_addr] {%} 1]"
}
else {
drop
}
}
- Tyler_Brown_949Oct 19, 2015NimbostratusThanks for the quick response Brad, I'll give that a try. I just got it working with the following as well. when CLIENT_ACCEPTED { if {[active_members client-443-pool-01] < 1}{ reject } } when HTTP_REQUEST { Look for a URI If found send back an HTTP 200 if { [HTTP::uri] equals "/about/health/status" } { Send a 200 response with data HTTP::respond 200 "X-PublicIP" "[IP::client_addr]" "X-Responce" "TestOk" } else { drop } }