crush09_18103
Aug 30, 2012Nimbostratus
Need help with IRULE,
So here is the scenario. We have a "production website" in one facility. We have a "maintenance website" in another facility. They want to be able to be able to change the response on a webpage within the maintenance website to "down" which will cause the "production website" to redirect to the 'maintenance website." This gives them control of when the maintenance webpage comes up. They do not want anything automatic.
So i'm thinking that the irule will have to do a get and look for a response, if "down" then redirect.
Is this even close? Also, I need to make sure that persistance does not keep sending people who were already connected to the production website when the redirect is supposed to be happening. Not sure how to write that.
when HTTP_REQUEST {
if { [GET /getwebsitestatus.aspx?env=test HTTP/1.1\r\nHost: testmaint.xyz.com\r\nConnection: close\r\n\r\n ] eq down}{
HTTP::redirect "https://testmaint.xyz.com/default.htm"
}
}
However, is there any way that "maintenance website status" could do a send to the "production website" to force the redirect.
Any help would be much appreciated.
Crush09