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

Host header-value matching where a port is used.

Hi all,

Would anyone be able to advise on the match value where the host header includes a port, e.g. www.mysite.com:9080. My question here goes to the collon preceding the port. Can this be done? If so, how?

If not, what is other option to match on, wildcard? The scenarion is same site being accessed, so www.mysite.com remains unchanged, but on varoius ports, around 20 differnt ports. Issue is port is part of host header.

Any guidance or advice would be appreciated.

Thank you.

Paul.

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Host header-value matching where a port is used.

Hi Paul,

Yes, you should be able to match on the port part of the header also. It's all just a text string, so you just need to play a bit with the regex syntax until you find the right one.

Regards

Daniel

2 REPLIES
New Member

Host header-value matching where a port is used.

Hi all,

Would something like this below work? Trying to catch all the various ports that may be utilised (9080 -9099).

class-map type http loadbalance match-all L7-APP1

match http Host header-value www[.]mysite[.]com[:]90*

Thanks

Paul

Cisco Employee

Host header-value matching where a port is used.

Hi Paul,

Yes, you should be able to match on the port part of the header also. It's all just a text string, so you just need to play a bit with the regex syntax until you find the right one.

Regards

Daniel

427
Views
0
Helpful
2
Replies