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

URL redirect to same VIP

Hi,

I'm trying to change the URL the user has to put into his browser.

I have a content rule like this:

content example

port 80

protocol TCP

vip address x.x.x.x

URL "//mail.domain.com/*"

redirect //mail.domain.com/subfolder/*"

add service mail

active

I tried to use the redirect-string under the service as well without any result.

Am I missing something?

Thanks,

Karl

3 REPLIES

Re: URL redirect to same VIP

Karl~

If this is the only rule you have for vip of the application then even the redirected traffic will hit this rule and will be redirected eventually (kind of redirection loop).

You need another content rule that waits for connections requests coming with "mail.domain.com/subflder" url. From this second rule you will assign services.

For redirection with same virtual ip you need two content rules

Rule 1 (listening for original url) --- to redirect traffic

Rule 2 (listening for redirected url) --- to loadbalance traffic

Hope it makes sense.

Syed

New Member

Re: URL redirect to same VIP

Hi Syed,

I've seen this after I posted my question. I tried to setup a redirect to another content rule like this:

content mail

vip address x.x.x.x

url "//mail.domain.com/*"

protocol tcp

port 80

redirect "//mail.domain.com/subfolder/"

active

content mail-redirect

vip address x.x.x.x

add service mail

protocol tcp

port 80

url "//mail.domain.com/subfolder/*"

active

I also tried the redirect to the subfolder only like this:

content mail

vip address x.x.x.x

url "//mail.domain.com/*"

protocol tcp

port 80

redirect "/subfolder/"

active

Is there anything else I need to do?

Thanks for your help.

Karl

New Member

Re: URL redirect to same VIP

A correction to my post:

I've found a syntax error in my configuration (gets me every time...). The config with the redirect to a second content rule which listens for the redirect url works fine.

Many Thanks,

Karl

276
Views
0
Helpful
3
Replies
CreatePlease to create content