Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Redirect to the same VIP

Hi

I need to redirect a page to the same VIP. Followed the instructions on the URL link below: http://www.cisco.com/en/US/products/hw/contnetw/ps789/products_tech_note09186a00801c65b5.shtml

Still don't know how to create a content rule to accept the new page.

Can someone help, please?

Thanks,

Fabrice

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Redirect to the same VIP

the problem is that url "/*" will catch everything including /exchange.

so when you connect back to /exchange it goes back to the same redirect-1

for your main content rule (no-redirect) use the same config and the following url command :

url "/exchange*"

Regards,

Gilles.

4 REPLIES
rob
New Member

Re: Redirect to the same VIP

Define a service for your server(s)

define a content rule

content XXXX

add service xxxx

url "/*" (what you want redirecting)

protocol tcp

port 80

redirect "http://www.cisco.com/index.html"

( where it should be re-redirected to....

This is how I got it working without the use of a VIP but then in my scenario Im not load balancing across muliple boxes

If this doesnt help you send me your config and ill take a look for you

Cheers

New Member

Re: Redirect to the same VIP

Hi. Thanks for your reply.

First I created the same content rule as mentioned above but it still doesn't work.

Then I created two differents rules which go directly in loop:

content Redirect

add service test1

add service test2

vip address 192.168.72.12

protocol tcp

port 80

active

content Redirect-1

vip address 192.168.72.12

redirect "/exchange"

protocol tcp

port 80

url "/*"

active

Do you have an idea what's wrong?

Thanks again

Cheers

Cisco Employee

Re: Redirect to the same VIP

the problem is that url "/*" will catch everything including /exchange.

so when you connect back to /exchange it goes back to the same redirect-1

for your main content rule (no-redirect) use the same config and the following url command :

url "/exchange*"

Regards,

Gilles.

New Member

Re: Redirect to the same VIP

Dear Gilles

It works!

Thanks a lot

Bonne soirée

Fabrice

129
Views
0
Helpful
4
Replies
CreatePlease to create content