cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1113
Views
0
Helpful
8
Replies

strange behaviour of http to https redirection

parveesm123
Level 1
Level 1

Hi,

My client has a website and his request is some of the pages need to be redirected to https

for example his site is

rad1.booking.com and only these pages needed to be using https since it requires confidential entries

rad1.booking.com/ibe/passengerDetails.xhtml

rad1.booking.com/ibe/deliveryOptions.xhtml

rad1.booking.com/ibe/paymentMethods.xhtml

i have used both host redirection and ssl url rewrite using action list but both didnt gave me good result.

using redirection i have done follows

---------------------------------------------------

rserver redirect RS-redirect

webhost-redirection https://%h%p302

  inservice

serverfarm redirect SF-redirect

rserver RS-redirect

inservice

class-map type http loadbalance match-any CM-redirect

  2 match http url /ibe/*.*

policy-map type loadbalance http first-match L7-Policy-myweb

class CM-redirect

serverfarm SF-redirect

class class-default

sticky serverfarm Stick-my-webpage

When i used this , it didnt shown any http to https redirection , it always worked perfectly fine but just as usual http page

-------------------------

Second method

------------------------

action-list

---------------

action-list type modify http AL-redirect

  ssl url rewrite location "rad1\.booking\.com"

class-map type http loadbalance match-any CM-redirect

  2 match http url /ibe/*.*

policy-map type loadbalance http first-match L7-Policy-myweb

class CM-redirect

action AL-redirect

class class-default

sticky serverfarm Stick-my-webpage

both didnt give me any solution which i am looking for..

am i doing something wrong  here?

thanks

Parvees

8 Replies 8

parveesm123
Level 1
Level 1

No one to assist here?

Does it work if you make a non cnoditionnal redirection ? (no class map matching a URL)

Your config seems to be ok to me.

Yes, i checked it with matching the source ip address in the L7 class map and it worked fine

And if you use

class-map type http loadbalance match-any CM-redirect

  2 match http url /ibe/*

instead of

class-map type http loadbalance match-any CM-redirect

  2 match http url /ibe/*.*

?

Hi Surya

it never get matched

       backup serverfarm : -

            hit count        : 0        

            dropped conns    : 0       

       backup serverfarm : -

            hit count        : 0        

            dropped conns    : 0        

If i am changing the url match as following... it is working fine but the problem is all the pages in the website will get redirected to https ( as expected)

match http url /.*

How do we tweak the regex in ACE?

Did you also try this?

match http url /ibe.*

-

Siva

Review Cisco Networking for a $25 gift card