cancel
Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.

2 different URI (on the same VIP) call to same server

Janez
Nimbostratus
Nimbostratus

Hi Team,

 

I needs to create irule (or policy) for the below request, please suggest me how to do:

 

Calls https://test.com should to go real server with https://192.168.10.5

Calls https://test.com/NAS should to go real server with https://192.168.10.5/NAS

 

and also on secondary link https://test.com/NAS is present authentication with certificate for app.

 

Thanks

 

2 REPLIES 2

Samir
Nacreous
Nacreous

How many Pool members are there behind application "test.com", If only one then all request will be served to node "192.168.10.5" and simple iRule is enough to serve request. No issue with SSL certificate.

when HTTP_REQUEST { if {[HTTP::host] ne ""}{ HTTP::respond 301 Location "https://[getfield [HTTP::host] ":" 1][HTTP::uri]" } else { HTTP::respond 301 Location "https://[IP::local_addr][HTTP::uri]" } }

Hope it will work for you.

 

 

Janez
Nimbostratus
Nimbostratus

Hello Samir,

 

It is just one pool member.

 

What do you mean with "if {[HTTP::host] ne ""}" I don't now what "ne" mean?. So this iRule should work?

 

Thanks