cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
809
Views
0
Helpful
6
Replies

What is the difference on redirecting a URL and a server on ACE

nygenxny123
Level 1
Level 1

users come in on mysite.com--------different external IP and VIP

they get redirected to www.mysite.com---different external IP and VIP

looks like they are currently being redirected on the IIS server

how would i redirect them to a new url on the same server with a different external IP an VIP on the Loadbalancer?

the webhost redirection ?

would that involve the url redirect commant too?

6 Replies 6

venkatkr
Cisco Employee
Cisco Employee

The ACE can do redirect using the webhost-relocation command. So the client comes back and hits the ACE again on the redirected rule

so in short

client hits www.mysite1.com

DNS resolves it ot 2.2.2.2 VIP

ACE gets it and redirects it to http://www.mysite2.com

DNS resolves to 3.3.3.3 vip


ACE terminates that traffic.

Is that what you were looking for ?

Thanks
Venky

hmm

My concern is that the server team wants to redirect the urls to the same server ....

so the rserver for xample

is

rserver host serverwebsite

ip address 1.1.1.1

inservice

is associated in 2 server farms

servfarm host website1

rserver serverwebsite 80

inservice

and server host website2

rserver serverwebsite 80

inservice

so how would is it possible to redirect a url to another url on the same server with the same server ip

after a SSL handshake?

ACE can intercept the request from the client before it is sent to the rserver.

So, you can catch whatever URL you want and without contacting the rserver send a redirect to a new vip.

The next request from the client to the new vip can then be loadbalanced to an rserver.

Does not matter if the rserver is being used in multiple serverfarm.

If you have problem to realise such a config, send us EXACTLY what you would like to do and your current config and we can guide you.

Gilles.

bascially

we have 2 external site...mysite.com and www.mysite.com.....both have their own vips on the loadbalancer

both go to the same server......the IIS on the server recirects so that the request without the "www" gets

redirected to www.

we are settingup a new site...and we would like the old site to get redirected to the newsite

www.mynewsite.com.........

here is a sample of the new site

we would like the 2 previous sites to be redirected to www.mynewsite.com

class-map match-all MYNEWSITE-WEB-VIP
  2 match virtual-address 172.20.100.115 tcp eq https

class-map match-all MYNEWSITE-WEB-redirect
  2 match virtual-address 172.20.100.115 tcp eq www


class-map type http loadbalance match-any HOSTHEADER       
  2 match http header Host header-value "mynewsite.com"
  3 match http header Host header-value "mynewsite.net"
  4 match http header Host header-value "www.mynewsite.net"

rserver redirect MYNEWSITE-WEB-redir
  webhost-redirection https://www.mynewsite.com/%p    
  inservice

serverfarm redirect MYNEWSITE-WEB-redir
  rserver MYNEWSITE-WEB-redir
    inservice

policy-map type loadbalance first-match MYNEWSITE-POLICY
  class HOSTHEADER                     
    serverfarm MYNEWSITE-WEB-redir
  class class-default
    sticky-serverfarm MYNEWSITE-WEB_cookie
    action urlrewrite

policy-map type loadbalance first-match MYNEWSITE-WEB-redir
  class class-default
    serverfarm MYNEWSITE-WEB-redir


policy-map multi-match VIPs
.
.
  class MYNEWSITE-WEB-VIP
    loadbalance vip inservice
    loadbalance policy MYNEWSITE-POLICY
    loadbalance vip icmp-reply active
    appl-parameter http advanced-options HTTP_PARAMETER_MAP
    ssl-proxy server MYNEWSITE-WEB-PROXY
  class MYNEWSITE-WEB-redirect
    loadbalance vip inservice
    loadbalance policy MYNEWSITE-WEB-redir
    loadbalance vip icmp-reply active

Your config looks good.

what is the part not working ?

If the sites use different ip addresses, you will need new class-map to catch this traffic and use your redirect policy to redirect them to the correct site.

Gilles.

well it appears that the IIS itself was doing the redirect...

so we now i am having this problem

rserver redirect MYNEWSITE-redir

  webhost-redirection https://www.myoldsite.com/%p

  inservice

I get redirected fine…..up to the first “forward slash”

Server level (works)

https://www.mynewsite.com-------gets redirected to https:www.myoldsite.net/----good

Application level (works)

https://www.mynewsite.com/ARR---gets redirected to https://myoldsite.net/ARR----good

File level – doesn’t work:

https://www.mynewsite.com/ARR/LoginPKI.aspx---but this stays the same and doesn’t get redirected…..

do I need to add another %p on the rserver redirect MYNEWSITE-WEB-redir

Getting Started

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: