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

URI HELP REQUIRED

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
Cisco Employee

Re: URI HELP REQUIRED

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

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

Gilles.

4 REPLIES
Cisco Employee

Re: URI HELP REQUIRED

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.

New Member

Re: URI HELP REQUIRED

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?

Cisco Employee

Re: URI HELP REQUIRED

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

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

Gilles.

New Member

Re: URI HELP REQUIRED

Thanks Giles

157
Views
5
Helpful
4
Replies
CreatePlease login to create content