ACE: URL redirect - not working

Unanswered Question
Dec 21st, 2011

Hi,

I've to do url redirection from port 80 to port 443. I've following configured:

rserver redirect url.test.com-rd

  webhost-redirection https://url.test.com/

  inservice

serverfarm redirect url.test.com:80

  description url.test.com - port 80 redirect ***

  rserver url.test.com-rd

    inservice

class-map match-any url.test.com:80

  2 match virtual-address 192.168.1. tcp eq www

policy-map type loadbalance first-match url.test.com:80

  class class-default

    serverfarm url.test.com:80

  policy-map multi-match LOAD_BALANCE

   class url.test.com:80

    loadbalance vip inservice

    loadbalance policy url.test.com:80

    loadbalance vip icmp-reply active

===

with above configuration, ACE is redirection port 80 to port 443 but it also rewrites the header.  i.e. ACE send me to

"https://url.test.com/" if I type "http://url.test.com/abc" in the browser. It should have redirected to  "https://url.test.com/abc" ( it shouldn't have removed "/abc")

could you advice how to accomplish it.

Thanks in advance...

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 0 (0 ratings)
pablo.nxh Wed, 12/21/2011 - 13:39

Hi Gavin,

You must add "%p" after the forward slash, like this:

rserver redirect url.test.com-rd

  webhost-redirection https://url.test.com/%p

  inservice

That shoould do it

HTH

__ __

Pablo

gavinhan07 Wed, 12/21/2011 - 15:21

Hi,

thanks pablo. but that isn't expected response. redirected url shows the load balanced server. i.e. for the following serverfarm of port 443:

serverfarm host url.test.com:443

  description url.test.com - Port 7777 ***

  failaction purge

  probe url.test.com:7777

  rserver server1.test.com 7777

    inservice

redirected url comes as "http://server1.test.com:7777/abc/" ...instead of what I expect .i.e. i expect "

https://url.test.com/abc/"

"

pablo.nxh Wed, 12/21/2011 - 16:20

Hi Gavin,

In this case your backend servers have configured this redirection in the HTTP server itself i.e apache, IIS, etc...

I don't know all the details behind your site but you need to decide whether this is required (you may implement URL rewrite on response for that host header) or you can just remove it and let the ACE do all the redirection job.

HTH

__ __

Pablo

Actions

Login or Register to take actions

This Discussion

Posted December 21, 2011 at 1:17 PM
Stats:
Replies:3 Avg. Rating:
Views:605 Votes:0
Shares:0
Tags: No tags.

Discussions Leaderboard

Rank Username Points
1 1,551
2 369
3 333
4 228
5 212
Rank Username Points
5