Forum Discussion
crush09_18103
Nimbostratus
Aug 30, 2012Need 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
- Michael_Yates
Nimbostratus
Hi crush09, - crush09_18103
Nimbostratus
The "down" is not on the production webpage. The "down" is on the maintenance webservers. We already tried something like you are suggesting and it does not fit their needs. I appreciate the response. Thank you. - crush09_18103
Nimbostratus
The "down" is not on the production webpage. The "down" is on the maintenance webservers. We already tried something like you are suggesting and it does not fit their needs. I appreciate the response. Thank you. - crush09_18103
Nimbostratus
The "down" is not on the production webpage. The "down" is on the maintenance webservers. We already tried something like you are suggesting and it does not fit their needs. I appreciate the response. Thank you. - Kevin_Stewart
Employee
A couple of options:
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects