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.

iRules to redirect traffic https to http as well as changing the URL

Bobow
Cirrus
Cirrus

Hi Masters,

 

I need advise, i have case let say:

I have one VS Https: 11.11.11.11 with two url (url: https://abc.com/1/) and (url: https://cba.com/1/)

Pool member is: 

1. 10.10.10.9 (url: http://xyz:8080/1/)

2. 10.10.10.10 (url: http://xyz:80/1/)

 

The topology like this : Client > Firewall > F5 > Member/Node

 

My objective is I want to redirect traffic from the client if:

1. Traffic client from https (url: https://abc.com/1/) should be redirect to pool member/node 10.10.10.9 with (url: http://xyz:8080/1/)

 

2. Traffic client from https (url: https://cba.com/1/) should be redirect to pool member/node 10.10.10.10 with (url: http://xyz:80/1/)

 

Is it possible to create iRules? what kind iRules should i create?

 

Thanks in advance!

1 ACCEPTED SOLUTION

nathe
Cirrocumulus
Cirrocumulus

Bobow,

 

I wonder if this DC article will help. Are you using SNI on the virtual server to distinguish between domains? If so then see SNI Routing with Local Traffic Policies and perhaps this question too.

View solution in original post

2 REPLIES 2

nathe
Cirrocumulus
Cirrocumulus

Bobow,

 

I wonder if this DC article will help. Are you using SNI on the virtual server to distinguish between domains? If so then see SNI Routing with Local Traffic Policies and perhaps this question too.

Hi Nathe,

 

its solved! i'm using SNI Routing.

Thanks a lot for your advise!