Header Map Question

Answered Question
Jun 24th, 2008

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.

I have this problem too.
0 votes
Correct Answer by Gilles Dufour about 8 years 5 months ago

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Gilles Dufour Wed, 06/25/2008 - 04:53

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.

Actions

This Discussion