Forum Discussion
Redirect
So this is what I'm trying to do... We have a production webpage (virtual server/pool) with basic health monitors. We have a maintenance webpage (virtual server/pool). So the application guys want to be able to change the header on the maintenance webpage to contain the word "down" and when that happens they want the production webpage to redirect to the maintenance webpage. And flip back over when they remove the word "down."
Any help would be much appreciated....
- crush09_18103NimbostratusWhat would I put in the alias address anyway.The actual IP of the testmaint.xyz.com website?
- nitassEmployeeWhat would I put in the alias address anyway.The actual IP of the testmaint.xyz.com website?yes and alias service port should be 443.
- crush09_18103NimbostratusThanks SMP and nitass,
- smp_86112CirrostratusYou are welcome. However, I was thinking through my recommendation a bit, and there might be an implication you should be aware of depending on how you have it configured. Do you have two monitors on the pool, or just the maintenance monitor? If you have two monitors on the pool and are using the iRule I suggested, then if EITHER monitor fails you will get redirected to the maintenance page - not just when the maintenance monitor fails. That may not be the behavior you want. If you only apply the maintenance monitor, then it's not an issue. But if you want different behavior depending on which monitor fails, then we might need to come up with something else.
- crush09_18103NimbostratusSMP you read my mind, my plan was to alter the irule. Strange that we think alike, kinda scary. I'm not a TCL guy, I'm a network guy and I get the logic but I don't know the code. So here is the deal
- nitassEmployeewhat about if using only health1 on production pool, health2 on maintenance pool and then in production irule, using "LB::status pool" command to see if maintenance pool is up or down and redirect accordingly?
- crush09_18103NimbostratusSo if I created another pool without a VS and called it "health_pool" (i can use the same IPs of the maintenance page pool) then use that special monitor I created to get the website "down" message which would take down the health_pool. Then, i could go to the prod pool and put in an irule. Can i reference a pool that is not the same pool as where I'm applying the irule? So what would that Irule look like under the prod pool?
- nitassEmployeeCan i reference a pool that is not the same pool as where I'm applying the irule? So what would that Irule look like under the prod pool? yes but i understand you also have to specify pool member.
- crush09_18103NimbostratusSomething like this.
- nitassEmployeeaccording to sol6510, i think HTTP::redirect (2nd one) is better since bigip will send http redirection immediately.
Recent Discussions
Related Content
* 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