cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1035
Views
0
Helpful
4
Replies

URL rewrite and URL redirection

lingaraj19
Level 1
Level 1

Hi All,

can any one help me in configuring the ACE to do URL redirection.

let's say clinet access the URL : "https://abcd.xyz.co.in" then ACE should redirect it to the

"https://abcd.xyz.co.in/abc"

if it is possible to achieve through ACE then kindly suggest me how to do it.

Thanks in advance.

Regards,

L R N

4 Replies 4

Kanwaljeet Singh
Cisco Employee
Cisco Employee

Hi Lingaraj,

For HTTPS redirection you will have to configure SSL offloading on ACE. Normally you can use redirect servers to redirect a client request but for HTTPS request ACE cannot look into the packet and hence cannot redirect unless you configure ACE for SSL redirection. Here's a sample configuration for HTTPS redirection.


serverfarm redirect kanwal

  rserver kanwal

    inservice

ssl-proxy service SSL
  key cisco-sample-key

  cert cisco-sample-cert

policy-map type loadbalance first-match kumar

  class class-default

    serverfarm kanwal

   

policy-map multi-match server-NAT

  class Test

    loadbalance vip inservice

    loadbalance policy kumar

    loadbalance vip icmp-reply

    nat dynamic 1 vlan 999

    ssl-proxy server SSL

Let me know if you have any questions.

Regards,

Kanwal

Read SSL offloading and not ssl redirection in third line.

Hi Kanwaljeet Singh,

Thank you for your revert on this.

I agree that certificate should be owned by the ACE and then only ACE can do the changes in the header for HTTPS requests.

in my condition also I have a certificate offloaded on the ACE and I want to redirect the URL from

  "https://abcd.xyz.co.in" to "https://abcd.xyz.co.in/abc". just need to add the path after the hostname.

could you pls help in doing this.

Hi Lingaraj,

The above configuration should work fine as from your requirment it seems you need URL redirection.

rserver redirect url1

  webhost-redirection  https://abc.com/xyx  302

Inservice

You can just configure rserver redirect and call this server in serverfarm. Configure a policy map as shown above and also associate SSL proxy with the corresponding class under policy map.

You main URL should come to a VIP specified in class Test and then it will be LB to serverfarm and should be redirected since SSL offloading is there in place.

Please try and let me know how it goes.

Regards,

Kanwal

Review Cisco Networking for a $25 gift card