To direct the users to custom outage page, when they try to access the back-end servers during scheduled maintenance windows using Responder Policy bound to Backup Virtual Server.
CLI Config Below:
Importing of HTML file:
First, upload the HTML file to the var/tmp directory using a file transfer tool like WinSCP
Then, import the HTML file into var/download/responder directly by issuing the following command:
> import responder htmlpage local:HTMLpage_example HTMLpage_example
Responder Action and Policy:
>add responder action Test_Outage respondwithhtmlpage HTMLpage_example -responseStatusCode 200 -reasonPhrase OK
>add responder policy Test_Outage_Policy "HTTP.REQ.HOSTNAME.EQ(\"example.com\")" Test_Outage
Backup Service and Virtual Server:
>add service Always_Up_Service 5.4.5.4 SSL 443 -gslb NONE -maxClient 0 -healthMonitor NO -maxReq 0 -cip DISABLED -usip NO -useproxyport YES -sp OFF -cltTimeout 180 -svrTimeout 360 -CKA NO -TCPB NO -CMP YES
>add lb vserver Test_Backup_VS SSL 0.0.0.0 0 -persistenceType NONE -cltTimeout 180
>bind lb vserver Test_Backup_VS Always_Up_Service
>bind lb vserver Test_Backup_VS -policyName Test_Outage_Policy -priority 100
Binding the Backup Virtual Server to the intended Load Balancing Virtual Server:
>set lb vserver Test_VS -backupVServer Test_Backup_VS
GUI Config Below:
Creating a Responder Action and Policy:
1) Navigate to AppExpert>Responder>Responder>Actions. Create a Responder Action by clicking the Add button with following details:
a) Name: Test_Outage_Action
b) Type: Respond with HTML page
c) Select the HTML Page by clicking on +
i) Name: HTMLpage_example
ii) Import File: Select File
iii)Local File: Choose the HTML file by clicking on choose file
iv)Click Continue
d)Reason Phrase: OK
2) Create a Responder Policy with following details:
a)Name: Test_Outage_Policy
b)Action: Test_Outage_Action
c)Undefined-Result Action: -Global undefined-result action-
d)Expression: HTTP.REQ.HOSTNAME.EQ(“example.com”)
Creating a Backup Virtual Server
1)Create a backup Virtual Server.
2)Create a service with a dummy IP address that is always up ; i.e. uncheck "Health Monitoring" from the service.
3)Bind the service above and the server certificate to the backup Virtual Server.
4)Bind the Responder Policy to the Backup Virtual Server
5)Bind the Backup Virtual Server to the intended Load Balancing Virtual Server.