Variables in if regexes

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}”) { set $chk “”; }

Thanks!
-Kevin

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,194753,194753#msg-194753

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs