Hey guys,
I have been trying to use the nginx map module to do some rewrites in bulk, basically my
map looks something like this:
map $request_body $var {
default no;
~.+.string1 dorw;
~.+.string2 dorw;
...
}
in a location i have the following
if ($var = dorw){
rewrite ^ /home last;
}
I also have a log_format which logs the variable state (and it reports correct), however
once I enable that if.. the $var seems to reset to 'no'.
Any ideas? This is kind of confusing.
Thanks and any help is much appreciated.
Lou