This article describes how to configure a maintenance web page by using the Responder feature of the NetScaler appliance.
At times, when the services for a website are not available because of a planned outage or an unexpected event, you might want to display a maintenance or an apology page to the customer. You can use the Responder feature of the NetScaler appliance to create such a notification page during these events.
To learn more about the Responder feature, refer to Citrix Documentation - Responder.
To configure a maintenance webpage by using the Responder feature of the NetScaler appliance, complete the following procedure:
If not already done, run the following command to configure the required services:
add service server1 <IP_Address_of_Service> HTTP 80
You have to create a service that is always UP and bind it to this backup virtual server so that it will always remain UP. Go to Load Balancing > Services, and click Add and then create a service called "always-up" and use any dummy IP for the server and add a ping monitor, and click Create.
Alternately you can also make the monitor as type Reverse so that even if the service is down it will be always up for the dummy IP.
Run the following command to configure a Load Balancing virtual server:
add lb vserver vserver1 HTTP <IP_Address_of_VServer> 80
Run the following command to configure a backup Load Balancing virtual server:
add lb vserver backup HTTP 0.0.0.0 0
Run the following command to bind a service to the backup virtual server to ensure that the status of the backup virtual server is marked as UP:
bind lb vserver backup always-up
Run the following command to configure the main virtual server with the backup virtual server:
set lb vserver vserver1 -backupVServer backup
Run the following command to create a Responder action with an appropriate target web page:
add responder action mtn_pg_act respondwith q{"HTTP/1.0 200 OK" +"\r\n\r\n" + "<html><body>Sorry, this page is currently not available. Please try after some time.</body></html>" + "\r\n"}
Note: To avoid caching of the maintenance web page, you can set the HTTP code to 503 Service Unavailable instead of 200 OK.
Run the following command to create a Responder policy:
add responder policy sorryPol HTTP.REQ.IS_VALID mtn_pg_act
Run the following command to bind the policy to the backup virtual server:
bind lb vserver backup -policyName sorryPol -priority 4
Citrix Documentation - Troubleshooting Responder Issues