2

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

<If %{HTTP_COOKIE} == 'XDEBUG_SESSION=leho'">

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

%{HTTP_COOKIE} =~ /leho/
2

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:

<If "%{HTTP_COOKIE} =~ /XDEBUG_SESSION=leho/">
  • 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 '15 at 17:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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