Compare variable got from location with set of strings

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


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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list