I have a caching system I need to bypass if the logging in user's name is found in the $request_uri. I'm trying to do something like this, but can't get the variable to interpolate into the regex. Any suggestions pretty please? set $me "Asabouros."; if ($uri ~ $me) { set $chk ""; } I've always tried things like this: if ($uri ~ "by-{$me}"by inspire22 - Nginx Mailing List - English
Clever, thanks! Working pretty well :) Is there any way to print a variable to the error log so I can debug some more-complicated logic with setting things? How on earth can try_files be more efficient than a specific if-list? Doesn't it have to stat more files?by inspire22 - Nginx Mailing List - English
Hi all! I need to make sure try_files does not send to a static file if $args are included. #if ($args != "") {rewrite ^ @ app;} # tried here and below. location = / { rewrite ^ /home/index/$host; } location / { if ($args = "") { rewrite ^ @app;} try_files /downtime.html $uri/index.html $uri @app;# double rewrite error }by inspire22 - Nginx Mailing List - English