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.

Header Map Question

Hi,

I have already the following header map which works fine:

match protocol http header Host header-value abc.def.example.com*

Now I need to match whether the subdomain "def" is present or not. So, would the following accomplish this:

match protocol http header Host header-value abc.*example.com*

thanks,

Andrew.

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Header Map Question

Actually the first one is incorrect.

But it will work.

What you need is this

match protocol http header Host header-value abc\.(def\.)?example\.com

Press -v to insert the '?'

Gilles.

2 REPLIES
Cisco Employee

Re: Header Map Question

Actually the first one is incorrect.

But it will work.

What you need is this

match protocol http header Host header-value abc\.(def\.)?example\.com

Press -v to insert the '?'

Gilles.

Re: Header Map Question

Thanks Gilles,

Some review of regular expressions might be in order ;-)

145
Views
0
Helpful
2
Replies
CreatePlease login to create content