Automatically forward users of a loadbalanced StoreFront server to /Citrix/StoreWeb

This question was asked by one of my students during one of my last NetScaler CNS 207 classes. It should not be a difficult problem.

So what do we need to do?

  • rewrite requests to /Citrix/StoreWeb.
  • filter on requests without URL specified.
  • bind it to the load balancing server.

(there is also a 2nd way using a responder policy, but I preferred the rewrite policy)

The rewrite action:

we locate rewrite policies
NetScaler Rewrite Actions

First we add an action, so click action and then add.

NetScaler Rewrite Actions

we create a REPLACE action. We replace the URL (HTTP.REQ.URL) by the store address (“/Citrix/StoreWeb”)

Next thing will be the rewrite policy:

NetScaler Rewrite Actions

We bind our action and filter on requests with an empty URL (HTTP.REQ.URL.EQ(“/”)).

Finished! Just bind this policy to your load balancing server. It will do the trick for you!

2 thoughts on “Automatically forward users of a loadbalanced StoreFront server to /Citrix/StoreWeb

Leave a Reply

Your email address will not be published. Required fields are marked *