04-27-2007 06:36 AM
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
04-27-2007 10:46 AM
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
04-30-2007 12:45 AM
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
04-30-2007 12:51 AM
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
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: