Nginx syntax problem '~*'

Posted by Joseph Silvashy on Stack Overflow See other posts from Stack Overflow or by Joseph Silvashy
Published on 2010-05-29T22:08:29Z Indexed on 2010/05/29 22:12 UTC
Read the original article Hit count: 311

Filed under:

I have at condition checking to see if user has a cookie like this:

 if ($http_cookie ~* "developer=true" ) {
   ...
 }

I'm not familiar with the ~* syntax, I assume that that means if it 'contains', but what about the opposite? like what if I wanted to check if $http_cookie doesn't contain that cookie?

© Stack Overflow or respective owner

Related posts about nginx