Forum Discussion
Ajit_Mohan_2587
Mar 08, 2011Nimbostratus
https redirect - maintenance page
Hello Everyone,
I am new to irules so I need some help.
We have a HTTPS Virtual Server configured on the LTM with four web servers in the pool. The certificate is installed on the F5 (SSL Client profile). We have a requirement to redirect users to a maintenance page when all the web servers are down (web servers are monitored using a monitor at the pool level). I was looking at irules to accomplish this.
Looking around the forum's I found a link to an irule " http://devcentral.f5.com/wiki/default.aspx/iRules/HTTPS_passthrough_fallback_URL.html" which is exactly what I am trying to achieve
To test it, I applied the irule to the Virtual server and manually disabled all the servers in the pool. As expected the web requests were redirected to the maintenance website. However when I enabled one of the web servers and tried to access the website it does not come up, it just shows me a blank screen with a status saying its trying to connect...
Am i missing something?
Any help is greatly appreciated
Thanks.
- Chris_MillerAltostratusThat rule appears to let the pool members do the decryption unless they're down in which case LTM will do the decryption and then send the user to the maintenance page.
- Chris_MillerAltostratusHow about something like this?
when HTTP_REQUEST { if { [active_members poolx] < 1 } { HTTP::redirect "http://www.example.com/maintenance.html" } }
- Ajit_Mohan_2587NimbostratusThanks Cris, Yes I realised it later that the iRule was passing SSL thru to the nodes. I am using the below irule now, which seems to work fine
- Ajit_Mohan_2587NimbostratusI will look into the fallback host option. Thanks again!
- hooleylistCirrostratusThat iRule was designed to only decrypt the SSL if no pool members were available. To get the functionality you're looking for, you should be able to use the fallback host field on an HTTP profile without an iRule.
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