Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Compare variable got from location with set of strings (1 reply)

$
0
0
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!_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 7229

Trending Articles