09-22-2011 03:57 AM
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
09-25-2011 09:51 PM
No one to assist here?
09-25-2011 10:35 PM
Does it work if you make a non cnoditionnal redirection ? (no class map matching a URL)
Your config seems to be ok to me.
09-25-2011 10:39 PM
Yes, i checked it with matching the source ip address in the L7 class map and it worked fine
09-25-2011 10:41 PM
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/*.*
?
09-25-2011 11:06 PM
Hi Surya
it never get matched
09-25-2011 11:11 PM
backup serverfarm : -
hit count : 0
dropped conns : 0
backup serverfarm : -
hit count : 0
dropped conns : 0
09-25-2011 11:14 PM
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?
09-26-2011 07:11 AM
Did you also try this?
match http url /ibe.*
-
Siva
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide