Forum Discussion
Mar 08, 2014
Hi Parveez!
Reformatting the rule to make it readable. 🙂
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/" } {
node 10.10.10.10 80
} else {
pool maintenance_page
}
}
This rule would send all users for all requests that starts with "/" to node 10.10.10.10:80. Problem is that it would do so, no matter the state of the pool members and for all request (ie, website.com/PROD" start with "/" and so does "website.com/"). I don't believe there even is such a thing as a uri that does not start with "/".
The maintenance pool would never be used because the condition before it would always be true.
/Patrik