cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
598
Views
5
Helpful
4
Replies

URI HELP REQUIRED

mbaylis
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

the CSS does a best match - whatever the order of the config.

So the rule "/*" will be used as a last resort.

Gilles.

View solution in original post

4 Replies 4

Gilles Dufour
Cisco Employee
Cisco Employee

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.

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?

the CSS does a best match - whatever the order of the config.

So the rule "/*" will be used as a last resort.

Gilles.

Thanks Giles

Review Cisco Networking for a $25 gift card