Is there a more elegant way to apply conditions in nginx?
- by Ryan Detzel
Is there a better way to do this? I can't find a way to nest or apply boolean operators to conditions in nginx.
Basically if there is a cookie set(non-anonymous user) we want to hit the server. If the cookie is not set and the file exists we want to server the file otherwise hit the server.
set $test "D";
if ($http_cookie ~*…