05-10-2013 12:27 PM
Dear Team,
Kindly suggest how i can redirect the url in ACE from http://172.24.14.11/ to http://172.24.14.11/EO-SIAS-Client/ ???
I have tried with create the redirection server, but its not working. I thinks its creating the loop.
So please help me resolve the same.
Thanks in advance.
Regards,
Ranjith
05-11-2013 02:17 AM
Hi Ranjith,
Please attach the config. Ideally if you can create two class with URL match. One will match "/EO-SIAS-Client/"
Call this class first and load balance to serverfarm. The second class in under multimatch policy should be "/"
So anything hitting this class will go to redirect and will rewrite the URL to "/EO-SIAS-Client/"
If you reverse the order of the class then it will keep going in the loop.
Let me know if that helps.
regards,
Ajay Kumar
05-11-2013 04:34 AM
Dear Ajay,
Please find the below configuration.
In this configuration iam successfully able do the redirection. I am getting page cannot displyed after selecting other pages
rserver redirect APDRP-REDIRECT
webhost-redirection http://172.24.14.11/EO-SIAS-Client/ 302
inservice
rserver host RS_WEB1
description content server web-one
ip address 172.24.7.26
inservice
rserver host RS_WEB2
description content server web-two
ip address 172.24.7.27
inservice
serverfarm redirect SF_Redirect
rserver APDRP-REDIRECT
inservice
serverfarm host SF_WEB
rserver RS_WEB1 8080
probe TCP_8080
inservice
rserver RS_WEB2 8080
probe TCP_8080
inservice
parameter-map type connection Timeout_Conn
set timeout inactivity 300
class-map match-all VS_WEB
2 match virtual-address 172.24.14.11 tcp eq www
class-map type http loadbalance match-any urlmatch
4 match http url .*/EO-SIAS-Client/
policy-map type loadbalance http first-match PM_LB
class urlmatch
serverfarm SF_WEB
class class-default
serverfarm SF_Redirect
policy-map multi-match PM_MULTI_MATCH
class VS_WEB
loadbalance vip inservice
loadbalance policy PM_LB
loadbalance vip icmp-reply
nat dynamic 1 vlan 52
connection advanced-options Timeout_Conn
Regards,
Ranjith
05-12-2013 01:06 PM
Hi Ranjith,
As per the below config :
policy-map type loadbalance http first-match PM_LB
class urlmatch
serverfarm SF_WEB
class class-default
serverfarm SF_Redirect << As per this config all the URL except the URL "/EO-SIAS-Client/" will be redirected to "EO-SIAS-Client/"
I believe this is the problem. Can you check by taking a wireshark capture to confirm the theory. Ideally if you click on any link you should not get page cannot be displayed.
As per your problem description you want to rewrite
http://172.24.14.11/ to http://172.24.14.11/EO-SIAS-Client/
Or Do you have specific URL which you want to rewrite.
Also attach the capture that will help me to understand the issue better.
regards,
Ajay kumar
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: