I am not able to figure out why the following doesn't match:


I'm setting a php_value inside the matching If. I know that part works because this seems to match something

%{HTTP_COOKIE} =~ /leho/

1 Answer 1


HTTP_COOKIE is a semi-colon delimited list of all the cookies that are set. Your == test would only work if your cookie were the only one set. Instead, I would try this regular expression match in the <If> directive:

  • Yep that's exactly what I ended up getting to later that night, and it worked. I may have missed the // regex delimiters or something at first try.
    – lkraav
    Jan 6, 2015 at 17:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.