On Fri, Jan 24, 2014 at 1:04 PM, B.R. <[email protected]> wrote: > Does the following work?
This looks like a fragile solution. You're basically simulating an "if", but I don't think we should assume that nginx will resolve all maps in the defined order, as would be using "if". The nginx documentation for HttpMapModule says: "The map directive creates the variable, but only performs the mapping operation when (and if) the variable is accessed." In your solution, $bypass is already set to "true" a-priori, and also defined in two maps. I doubt nginx will resolve those maps, in the right order, to arrive at the desired value of $bypass. Maybe someone from the nginx team can comment if this is a viable solution? _______________________________________________ nginx mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx
