If your IIS runs multiple WebInterfaces on 1 IP-address on the same TCP-port, IIS uses host headers to distinguish which site to present. However a CAGEE configuration will not include a host header name in the GET request to the webserver.
In this article we try to explain how to create a load balancer service on top of the WI/IIS which adds the needed host header using a request rewrite. (Netscaler Standard feature).
- First configure a Load balancer for your Web Interface
- Go to “Policies” and click “Rewrite (Request)”
- Click “Policy Name” and click “New Policy …”
- At level”Action” click “New …”
- Click “Create”
- Click “Close”
- To test the “Rewrite” click “Evaluate”, in the new windows click “Sample” and “Evaluate”
- Click “Close”
- Add Expression “TRUE”
- Click “Close”
- Select the just created policy and select “NEXT” in the column “Goto Expression”
- Click “Insert Policy” and click “New …”- rewrite actio
- Add “TRUE” in the expression field
- Click “Evaluate” to test the rewrite policy
- Click “Close” and click “Create”
- Make sure the order of the policies is correct
- Now go to your CAG configuration and point your WebInterface entry to this load balanced service. The LB will inject the hostheader required by IIS.