KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a caching system I need to bypass if the user's name (in a cookie) 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? I can set the $me variable just fine from the cookie; I just can't get it to interpolate into the regex. set $chk == "need"; set $me "kevin"; if ($uri ~ $me) { set $chk ""; } if ($chk == "need") { rewrite ^ /testing } I've always tried things like this: if ($uri ~ "by-{$me}") { set $chk ""; } Thanks! -Kevin
Tags (comma-separated)
Save Edits
Cancel