cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
572
Views
0
Helpful
3
Replies

URL redirect to same VIP

karl.brenner
Level 1
Level 1

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 3

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

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

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

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: