05-01-2012 04:45 PM
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.
Solved! Go to Solution.
05-08-2012 05:32 AM
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
05-01-2012 05:39 PM
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
05-08-2012 05:32 AM
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
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