10-16-2006 07:32 AM
Hi, Just wondered if you guys on here can help on this problem we have.
Basically we have the Incoming domain OCSLAPPS.****.COM. What we would like to do is match different URI associated with this domain.
We would like to do is this;
1) if a incoming URI came in on port 80 with URI /ocsclient/* we would like it to be sent to destination port 7778.
2) if a incoming URI came in on port 80 with URI /portal/* we would like it to be sent to destination port 7777.
3) if a incoming URI came in on port 80 with URI /pls/portal/* we would like it to be sent to destination port 7777.
....and finally we would like it to match this URI last; HOW WOULD WE MAKE SURE THIS URI IS MATCHED LAST?
4) if a incoming URI came in on port 80 with URI /* we would like it to be sent to destination port 7778.
I have a fair idea of how to do it, but would like some input on the best and most efficient way of configuring this.
Thank you in advance
Solved! Go to Solution.
10-17-2006 01:15 AM
the CSS does a best match - whatever the order of the config.
So the rule "/*" will be used as a last resort.
Gilles.
10-16-2006 10:25 PM
what is your hardware ???
For a CSS you would do it like this
service S-7778
ip x.x.x.x
port 7778
active
service S-7777
ip x.x.x.x
port 7777
active
Owner OCSLAPPS
content ocsclient
vip x.x.x.x
port 80
proto tcp
url "/ocsclient/*"
add service S-7778
no persistent
active
content portal
vip x.x.x.x
port 80
proto tcp
url "/portal/*"
add service S-7777
no persistent
active
<...>
content any
vip x.x.x.x
port 80
proto tcp
url "/*"
add service S-7778
no persistent
active
Hope this helps.
Gilles.
10-17-2006 12:17 AM
Hi Giles,
Thanks for the response. The config you have shown confirms my intensions. Would the content rule "any" be matched last, as this is what we are trying to achieve? i.e. would the CSS be greedy and match this before the other rules?
10-17-2006 01:15 AM
the CSS does a best match - whatever the order of the config.
So the rule "/*" will be used as a last resort.
Gilles.
10-17-2006 01:27 AM
Thanks Giles
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide