Forum Discussion
Chris_Bond_1573
Nimbostratus
Aug 15, 2005Maintence
Currently we're looking todo the following:
BIG IP -> SSL Off Load/Compression -> BIG IP Chooses best WEB Server to route request to (WMI CPU, Dynamic Ratio from initial talks). F5/ada are doing this for us on the trial period.
Its also worth meantioning the ssl setup, we're using two wildcard SSL Cert's.
However, we have the following scenerio that we'd like to do on the big-ip side and was wondering if anybody has a solution.
Say we want to upgrade a customers site https://clientname.domain.com/somevirtualdir/*. What we want todo is get the BIG-IP to stop sending those requests (which ever page they hit) over the normal webserver pool and instead redirect to a static htm page that says an upgrade is going on. Once the upgrade is finished we then want to revert back to the normal setup.
Hope this makes sense - im assuming its an irule and a combination of a vbs/.NET exe script to create an irule on the fly that disables takes priority over existing rules.
6 Replies
- bl0ndie_127134Historic F5 AccountThis rule should do the trick.
when HTTP_REQUEST { if {[HTTP::host] equals "mydownhost.com" } { HTTP::redirect "http://www.mystatic.com/static.html" } }
- Chris_Bond_1573
Nimbostratus
What about a specifical directory too? As one site might have X amount of databases/sites hanging off it. - bl0ndie_127134Historic F5 AccountYou should be able to get that path information using the ‘HTTP::uri’; I would recommend that you scan around the forum as there are plenty of good examples that should get you statted.
- Colin_Walker_12Historic F5 AccountAs for a rule using a redirect that includes the HTTP::uri, bl0ndie's right, there are some good examples.
- unRuleY_95363Historic F5 AccountI might suggest you use a class/datagroup. That way you can dynamically update the class with hosts/uris that are offline and then you don't have to change the rule.
when HTTP_REQUEST { if { [matchclass [HTTP::host] equals $::offline_hosts] or \ [matchclass [HTTP::uri] starts_with $::offline_uris] } { HTTP::redirect http://www.domain.com/offline } }
priority 250 when HTTP_REQUEST { }
when HTTP_REQUEST priority 250 { }
- Chris_Bond_1573
Nimbostratus
Brilliant thanks for all your replies should be able to knock something up on unit now when it arrives.
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