CTX117337
NetScaler
NetScaler_all
Load Balancing/High Availability
2016-05-02
2015-02-18
This article describes how to configure a maintenance web page by using the Responder feature of the NetScaler appliance.

Objective

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.


Instructions

To configure a maintenance webpage by using the Responder feature of the NetScaler appliance, complete the following procedure:

  1. If not already done, run the following command to configure the required services:
    add service server1 <IP_Address_of_Service> HTTP 80

    Note: 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" but for the Server, type in the localhost IP of 127.0.0.1, add a ping monitor, and click Create.

  2. Run the following command to configure a Load Balancing virtual server:
    add lb vserver vserver1 HTTP <IP_Address_of_VServer> 80

  3. Run the following command to configure a backup Load Balancing virtual server:
    add lb vserver backup HTTP 0.0.0.0 0

  4. 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

  5. Run the following command to configure the main virtual server with the backup virtual server:
    set lb vserver vserver1 -backupVServer backup

  6. 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.

  7. Run the following command to create a Responder policy:
    add responder policy sorryPol HTTP.REQ.IS_VALID mtn_pg_act

  8. Run the following command to bind the policy to the backup virtual server:
    bind lb vserver backup -policyName sorryPol -priority 4


Applicable Products


 

Join the conversation

Citrix Discussions

Open a case

Citrix Support

特别说明


本文来源为Citrix.com所有,翻译后版权归翻译者所有.如需转载请注明出处.

文档版本


.

广告招租


最新留言


.

广告招租


.