cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
676
Views
0
Helpful
2
Replies

Host header-value matching where a port is used.

Paul Pinto
Level 1
Level 1

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

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

View solution in original post

2 Replies 2

Paul Pinto
Level 1
Level 1

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

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