maintenance page
8 TopicsHow to create iRule to respond with Maintanence Page for HTTPS site
I have created a maintenance page using html - iFile configurations as below: when HTTP_REQUEST { if { [active_members [LB::server pool]] < 1} { switch [string tolower [HTTP::uri]] { "/" { HTTP::respond 200 content [ifile get Maintenance] "Content-Type" "text/html" } "/logo.png" { HTTP::respond 200 content [ifile get logo] "Content-Type" "image/png" } "/background-pattern.png" { HTTP::respond 200 content [ifile get background-pattern] "Content-Type" "image/png" } } } } It works great with HTTP Site, no problem there. But when I apply same iRule to VS running HTTPS service, it fails to generate the sorry page. I am doing SSL Bridging, and not offloading ( This cant be changed to offloading). It works when I opt for offloading though. It would be a great help if anyone could make it working for HTTPS site with SSL Bridging enabled.1.2KViews0likes6Commentsirule for maintenance page
I'm hosting a maintenance page on F5 using iFiles. I'm using an iRule that look at the pool member, and based on the logic, iRule is initiated. It works only if the pool members are down. I need an iRule that if the two hops down Apache is not responding (/home.html) then a maintenance page should execute. Any help is greatly appreciate. Thanks Fasih626Views0likes4CommentsMaintenance Page iRule with allowed IP addresses
I'm looking for a maintenance page iRule that will redirect traffic during a time frame, this iRule needs to allow certain IPs to connect to the server without being redirected to the maintenance page. Here's our scenario: Begin maintenance mode Deploy new code Run front-end tests If tests pass, end maintenance mode I've read through some very interesting posts on how to implement maintenance mode iRules: https://devcentral.f5.com/questions/maintenance-page-irule-need-redirect-and-rewrite https://devcentral.f5.com/articles/irule-maintenance-windows But each post seems to just want to redirect all traffic, as opposed to allowing certain IP addresses to connect to the site that's in maintenance mode. Surely someone out there has faced a similar problem, help a complete F5 noob out401Views0likes1Commentcreate maintenance page for non LTM site
Hi, We need to create a maintenance page for a virtual server that isn't using the LB module (single pool created without LTM). I need it to load if there is either no response from the actual server due to network issues or if IIS is down or when the site sends a certain response code that will define that it is down for maintenance. I saw some irules re how to do this but all refer to sites using LB - so, is this the same primciple? How should this be done if we would like to base it also on UI (i.e., access to certain page will trigger the maintenance page, or certain response code as I mentioned above). Thanks Vered255Views0likes1CommentiRule - Is it possible to select a different pool and do an http redirect without infinite loop?
Hi all, I'm a relative amateur when it comes to crafting iRules, so thought I'd come to the experts and plead for any suggestions you'd be kind enough to offer! I've been asked to create an iRule to redirect traffic to a maintenance page when all the servers in a virtual's normal pool are down (redirecting to the same virtual, but using a different pool). Because this virtual is used for different purposes (using subfolders), I also need to check whether the URI contains a specific path, and then redirect the traffic to a specific page within a subfolder in the maintenance page pool: Basically: - Set up a check to detect whether all servers in a pool are down, and whether the incoming uri request contains a specific path - If all servers are down, use a different pool (which contains the maintenance page) - Because the maintenance page is not at the root of the servers, redirect all traffic to a page within a subfolder in the new pool What I've come up with that doesn't quite work has been the following: when LB_FAILED { persist none LB::reselect if { [URI::decode [string tolower [HTTP::uri]]] starts_with "/ohrcc/pages/client" } { log local0. "iRule:client-maintenance - routing to maintenance pool" use pool client-maint HTTP::redirect "https://client.accenture.com/test/maintenance-page.htm" - Doesn't work HTTP::fallback "https://client.accenture.com/test/maintenance-page.htm" - Doesn't work HTTP::respond 302 Location "https://client.foo.com/test/LMBuyerPortalfallbackEn.htm" } elseif { [URI::decode [string tolower [HTTP::uri]]] starts_with "/placeholder-check-for-future-maintenance-pages" } { use pool future-maint } else { use pool normal-pool log local0. "iRule:client-maintenance - routing to normal pool" } } From the logging, I do see that my conditional statement works (to detect the specific URI), but I can't seem to get the redirect to work at all. I tried http::redirect, http::fallback and http::respond302, with no luck. I believe the http::redirect results in an infinite loop (Browser hits the virtual, all servers are down, iRule re-selects maintenance pool, and then redirects to another page under the same virtual - which hits the iRule condition again...) My problem is this redirect. If the maintenance page was at the root of the maintenance pool, this code works: when LB_FAILED { persist none LB::reselect pool client-maint } Any suggestions? Thanks very much in advance!254Views0likes1CommentMaintenace page for a subnet
I have a need to create a maintenance/apology page for a data centre shutdown. Supposing everything is on subnet 1.1.1.0/24 how would I set up a redirect to an external web site http://www.sorry.com ? I know I could use an irule for the redirect something like when HTTP_REQUEST { HTTP::redirect "http://www.sorry.com" } But what kind of server would I set up to apply the iRule to? If a Standard one would it need a pool to work. The examples of iRules dont make it clear, what server config is needed even for a maintenance of one service. Sorry but I'm being dumb I know.236Views0likes2CommentsiRule help
Hello Guys, Quick question and need help with the iRule below. The goal is to setup an apology page when the all the pool members are down. so using the iRule below (Thank you nitass) ======================================================================== when HTTP_REQUEST { if {[active_members [LB::server pool]] < 1} { switch [HTTP::uri] { "/" { HTTP::respond 200 content [ifile get "apology"] } "/apology_pic" { HTTP::respond 200 content [ifile get "apology_pic"] } } } } ======================================================================== So when the user goes to and the pool members down the page is displayed fine. But lets say if the user is a smartypants and knows his vir dir and types in - www.site.com/getstatus.aspx then the apology page does not come up. Looking at the above rule I assumed that switch [HTTP::uri] will handel this...Am I wrong? How do I fix the above iRule?190Views0likes2CommentsF5 Irule for maintenance page on application
Hello All, Is it possible to use the page screenshot(jpg) on ifile and call it on irule when HTTP_REQUEST { # Retrieve the file contents, send it in an HTTP 200 response and clear the temporary variable set ifileContent [ifile get "test_application_name"] HTTP::respond 200 content $ifileContent unset ifileContent }59Views0likes2Comments