Compare variable got from location with set of strings

Vil Surkin vill.srk at gmail.com
Mon Sep 23 10:03:34 UTC 2013


Hello,

I have some location in configuration like this:
location ~ /([A-z]+_[A-z0-9]+) {
 … do something (got $1) …
}

And i need to compare this '$1' with a set of strings. How can i do this?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130923/3cbd1e0e/attachment.html>


More information about the nginx mailing list