05-Jul-2022 03:26
I have a VIP that is hosting two separate URL using HTTPS. The VIP for both URL is using the same backend servers. What i need is a monitor that sends a string to both URL to GET a file. If the file is missing or the receive string is different that what the F5 is expecti then the F5 will mark that backend down just for that URL.
virtual server - hosted URL his.example.com & her.example.com
monitoring send string: GET /f5.html HTTP/1.1\r\nHost: his.example.com\r\nConnection: Close\r\n\r\n
GET /f5.html HTTP/1.1\r\nHost: her.example.com\r\nConnection: Close\r\n\r\n
receive string "up"
The F5 sends a GET to each host and depending on the receive string will mark the backend down just for that URL.
Solved! Go to Solution.
05-Jul-2022 08:01
Hi,
why not just configuring two pools (pool_his, pool_her) with a pool specific monitor?
Now have an iRule which differentiates between the hostnames:
when HTTP_REQUEST {
switch [string tolower [getfield [HTTP::host] : 1]] {
his.example.com { pool pool_his }
her.example.com { pool pool_her }
}
}
05-Jul-2022 08:01
Hi,
why not just configuring two pools (pool_his, pool_her) with a pool specific monitor?
Now have an iRule which differentiates between the hostnames:
when HTTP_REQUEST {
switch [string tolower [getfield [HTTP::host] : 1]] {
his.example.com { pool pool_his }
her.example.com { pool pool_her }
}
}
05-Jul-2022 13:23
did not think of that, let me test that out.