Forum Discussion
TJ_Vreugdenhil
Cirrus
Dec 28, 2011Monitor send string
I am creating one pool with two pool members with two different IP's and ports, but I want to create a monitor that will check for both pool member host names? The problem is the VIP is going to be cr...
teguh_wilidarma
Nimbostratus
Feb 07, 2011I don't know, will this work?
example for FE module:
when HTTP_REQUEST {
if { [HTTP::host] equals "www.front.com"} {
[HTTP::redirect] http://[HTTP::host]:2020
} elseif { [HTTP::host] equals "https://www.front.com" and [HTTP::uri] equals "/servlet/LiveGiverServlet"} {
[HTTP::redirect] http://[HTTP::host]:2025
}
}
VS for FE module listen on port : 2020 and 2025
Regards
Teguh
- Brian_Van_StoneJul 30, 2012
Nimbostratus
When you redirect a client to another page, I don't think there is a way to ask them to then send a specific header in the request they make to that page. What you should probably do instead is insert a cookie that indicates they have viewed the information page, and allow them to the main site whenever that cookie is present. If they decide to clear their cookies or browse in a "private" mode, they will see the information page multiple times, but I don't really see any good way around that. I think a cookie is the way to go.The advantage of the cookie is it will also allow you to set an expiration. This means that after someone views the informational page, if they do not update their browser in a day/week/month they will see the page again, and so on until they update.