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

A

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!

About the author

Johannes Norz

Johannes Norz is a Citrix Certified Expert on Networking and a Citrix Technology Advocate.

He frequently works for Citrix international Consulting Services and several education centres round the globe.

2 comments

Leave a Reply to Jochy Cancel reply

By Johannes Norz

Recent Posts

Recent Comments