2 variables inside if() ?

untamed nginx-forum at nginx.us
Fri Oct 22 20:42:08 MSD 2010


I'm trying to compare 2 variables, like so (I've made sure the variables

[code]if ($arg_hash !~ $sha1) {

However in error.log it says:
[code]*1 "$sha1" does not match

I've tried swapping the variables over and the same error occurs, so it
looks like the variable after the comparison character(s) is considered
a string by nginx.

Does anyone know of a way to do this? Or of a third party module which
does this?

Thanks very much.

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

More information about the nginx mailing list