Forum Discussion
Redirect To Website
I have a case where we have an application that we can not do SSL offload for but I need to redirect to a site down page if the pool is unavailable. I tried the rule below but since I have no http profile applied to the VIP it does not understand the HTTP::redirect commnad. Any one have any suggestions on how to do this when no http profile is applied? Thanks
Joe
when LB_FAILED { HTTP::redirect "http://nrdcsd.app.medcity.net/" }
1 Reply
- giltjr
Nimbostratus
I don't think you can. Since the connection is encrypted and the F5 knows nothing about what is inside the connection, it can not insert any HTTP functions. Only two ways I can think of. Both invloved sending them to a http server that will accept the same SSL server and send a "out of service" page no matter what the URI.
Method one would be to add the "out of service" server to the current pool, but use priority groups so that it is only selected when all of the other servers are down.
Method two is put this in your iRule:
when CLIENT_ACCEPTED { if { [active_members current_pool] == 0 } { pool where_you_want_them_to_go } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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