Conditionally echoing header parts with header_regexp

That’s not valid syntax. You can’t use not inline, and you can’t use a named matcher as an argument to another matcher.

Please review the request matcher syntax documentation, it shows what is valid.

That said, to solve your issue, I recommend you read this article:

1 Like