Jump to content
Welcome to our new Citrix community!

Send one specific URL to a different backend server

Darren Poppleton

Recommended Posts

I'm not sure this is possible, but here it goes.


We have a LB VS going to a back end webserver. We now have a requirement to send a very specific URL request to a different server. For example:


https://www.foo.com goes to one backend server

https://www.foo.com/redirectme would need to be sent to a different server, while any other requests and URLs go to the first server.


How do I do this? Do I need to change the VS to a Content switching VS? Or can I just add a request policy that would do this?

Link to comment
Share on other sites



yes, you have to switch to an content switch vserver and define policies.


First, you need a policy for your special path like "/redirectme" and second a policy with "/" or only checking the hostname. 


For example:


Policy 1

Prio: 100

Expression: HTTP.REQ.HEADER(“Host”).EQ("www.foo.com") && HTTP.REQ.URL.EQ("/redirectme")

Target LB: LBVServer_Server2


Policy 2

Prio: 200

Expression: HTTP.REQ.HEADER(“Host”).EQ("www.foo.com") && HTTP.REQ.URL.EQ("/")

Target LB: LBVServer_Server1




Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...