Forum Discussion
Sever Open Requests and Display Maint Page
Hello!
Is there a way to kill all established/future connections to VS and display a maintenance page via iRule? I tried using Reject, but it resets all connections including the maintenance page, and the browser shows 'This page can’t be displayed' or 'Connection was reset.'
Your help is much appreciated!
4 Replies
- cjunior
Nacreous
You need to disable the VS or display a sorry page?
-
If you disable de VS, new connections will be rejected.
-
(I do this way) Did you posted your sorry page on bigip iFile and the VS is in standard L7?
a. Import an iFile in the menu System >> File Management >> iFile List b. Provide an iFile name with previous imported file in then menu Local Traffic >> iRules >> iFile List
The iRule in standard L7 VS:
when HTTP_REQUEST { HTTP::respond 200 content [ifile get "sorryPageName"] "Content-Type" "text/html" }The new connections will not follow to the backend servers; Regards.
-
- Nick_Palmer_f5
Nimbostratus
Hi cjunior and thanks for your reply!
Your solution will only apply to the new connections to the VS. I need to kill all established connections/sessions (like, file downloads) and then display the maint/sorry page.
- What_Lies_Bene1
Cirrostratus
Perhaps add a connection close header to the HTTP respond command:
HTTP::respond 200 content [ifile get "sorryPageName"] "Content-Type" "text/html" Connection "Close"For any existing connections (which might not trigger new HTTP_REQUEST or _RESPONSE events) not really sure what you can do I'm afraid.
- Nick_Palmer_f5
Nimbostratus
Thanks, What Lies Beneath. Is there a way to issue a command to reset the web nodes from within an iRule based on condition? The condition may be a sorry/maint page or a certain web request/URL.
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