Jump to content
Welcome to our new Citrix community!

URL with Path


Recommended Posts

Hi All,

 

I need your help to complete this task: I have a dns entry  blabla.domain.com which is sent to my NetScaler.

I created my LB with the service and the server which hosts my application http://blalbla:8080 locally.

Everything is working fine.

https://blabladomain.com --> NetScaler --> LB  --> http://blabla:8080

I want to add the possibility of accessing http://blabla:8080/client from the same entry https://blabla.domaine.com/client is this possible? and how to do it?

https://blabladomain.com/client --> NetScaler --> LB  --> http://blabla:8080/client

Thanks for your help. 

 

Link to comment
Share on other sites

Are you looking to change this for all users? if yes you can user responder

 

add responder action Redirect_Name redirect "\"blabla:8080/client\"" -responseStatusCode 302


add responder policy POL_Redirect "HTTP.REQ.HOSTNAME.CONTAINS(\"blabladomain.com\")" Redirect_Name

 

bind lb vserver Redirct-Corp_LB -policyName POL_Redirect -priority 100 -gotoPriorityExpression END -type REQUEST

Thanks

Manoj

 

Link to comment
Share on other sites

So If I will under correctly are you looking to  redirect all your user from http://blalbla:8080 to http://blabla:8080/client?

 

 

With rewrite

add rewrite action rw_act_client HTTP.REQ.URL "/blabla:8080/client"

add rewrite policy rw_pol_client "HTTP.REQ.URL.EQ("/") res_act_client

 

Or With  Responder

 

add responder policy Redirect_client "HTTP.REQ.URL.EQ(\"/\")" Redirect_client

add responder action Redirect_client redirect "\"/client\"" -responseStatusCode 302

 

 

 

Thanks

Manoj

 

Link to comment
Share on other sites

I have an internal application on the server http://blabla:8080/service and I have an Internet DNS entry: https://service.blabladomain.com which refers to the LB for this server.

I need to redirect external clients looking for https://service.blabladomain.com to internal application on the server http://blabla:8080/service

 

I created responder action and responder policy for this LB as you advised me.

But when i try to load https://service.blabladomain.com  the brow serseeks to display http://blabla:8080/service

 

HTTP/1.1 302 Found : Moved Temporarily
Location: http://blabla:8080/service
Connection: close
Cache-Control: no-cache
Pragma: no-cache

 

 

knowing that the application is internal and I am connected from the outside, I do not have access to the server blabla:8080

 

 

I thought of creating a rewritng rule for location to modify http://blabla:8080 in https://service.blabladomain.com

Link to comment
Share on other sites


User connects to "https://service.blabladomain.com", a redirect is sent to the user to connect to "http://blabla:8080/service" (externally) is this are you looking ?

This can be done by creating a responder policy with the action as redirect and then creating the appropriate policies.

add responder action redirect1 redirect "\"https://service.blabladomain.com\""
add responder policy redirect1 "http.REQ.URL.CONTAINS(\"service\")" redirect1


You will have to bind the policy on the LB vserser ( I believe you already setup this LB and  http://blabla:8080 setup)

bind lb vserver <vserver_name> -policyName redirect1 -priority 100 -gotoPriorityExpression END

 

Thanks

Manoj

Link to comment
Share on other sites

 

Quote


User connects to "https://service.blabladomain.com", a redirect is sent to the user to connect to "http://blabla:8080/service" (externally) is this are you looking ?

 

Not exactly what i need.

 

Example:

A user (outside) connects to "https://service.blabladomain.com" , I need NetScaler to forward this request to "http://blabla:8080/service" (internal server)

 

Client from Internet access to --> https://service.blabladomain.com --> Netscaler --> LB -- > http://blabla:8080/service (Internal Server)

 

My LB Conf :

 

Server :

  • Name blabla 
  • IP : 10.10.1.2

Service :

  • Server name : blabla
  • IP 10.10.1.2
  • Port : 8080
  • Protocol : HTTP

LB Virtual Server :

  • IP : 172.17.2.5
  • Protocol : SSL
  • Port : 443
  • LB Virtual Server Service Binding : SRV_Blabla
  • Policies : Responder Policy

 

Link to comment
Share on other sites

Have you tried this ?

 

 

add responder action redirect1 redirect "\"https://service.blabladomain.com\""
add responder policy redirect1 "http.REQ.URL.CONTAINS(\"service\")" redirect1


You will have to bind the policy on the LB vserser ( I believe you already setup this LB and  http://blabla:8080 setup)

bind lb vserver <vserver_name> -policyName redirect1 -priority 100 -gotoPriorityExpression END

 

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...