How to Redirect Web Interface on NetScaler with Rewrite

How to Redirect Web Interface on NetScaler with Rewrite

book

Article ID: CTX133826

calendar_today

Updated On:

Description

This article describes how to append the full site path by using the rewrite feature to access the Web Interface site when creating a Web Interface Load Balancing server.

Background

When Web Interface is on Windows or IIS, the Web Interface Load Balancing server sends the default IIS site information. This can be an issue if the Web Interface site used is not the default IIS site.

When Web Interface on NetScaler is used, there is no option to define a default Web site and you receive an “Invalid Path” error. If you are using the Web Interface on IIS/Windows or the NetScaler appliance, to access a Web Interface site through a Load Balancing Virtual Server you might require a rewrite policy to add the full site path.


Instructions

To append the full site path using the rewrite feature, complete the following procedure:

  1. Run the following command to add a rewrite action:
    add rewrite action xenapp_rw_act replace HTTP.REQ.URL "\"/Citrix/XenApp\""

  2. Run the following command to add a Rewrite policy:
    add rewrite policy xenapp_rw_pol “HTTP.REQ.URL.EQ(\”/\”)” xenapp_rw_act

  3. Run the following command to bind the rewrite policy to the Load Balancing Server:bind lb vserver gene_wi_vip -policyName xenapp_rw_pol -priority 100 -gotoPriorityExpression END -type REQUEST

Issue/Introduction

This article describes how to append the full site path by using the rewrite feature to access the Web Interface site when creating a Web Interface Load Balancing server.