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

Header Map Question

andrew.burns
Level 7
Level 7

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

Gilles Dufour
Cisco Employee
Cisco Employee

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.

View solution in original post

2 Replies 2

Gilles Dufour
Cisco Employee
Cisco Employee

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.

Thanks Gilles,

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

Review Cisco Networking for a $25 gift card