strange map $request issue
Maxim Dounin
mdounin at mdounin.ru
Fri Jun 20 13:21:23 UTC 2014
Hello!
On Fri, Jun 20, 2014 at 09:05:44AM -0400, itpp2012 wrote:
> For example:
>
> map $request $testvar {
> default 0;
> ~*montytest 1;
> }
>
> if ($testvar) { return 412; }
>
> [20/Jun/2014:xx:xx:20 +0200] 69.64.xxxx:52393 - - "GET /montytest/ HTTP/1.1"
> 412 712 "-" "Mozilla/5.0........
>
> [20/Jun/2014:xx:xx:29 +0200] 115.254.xxxx:59855 - - "HEAD /montytest/
> HTTP/1.1" 400 0 "-" "-" "-" -
>
> Why does a GET work but not a HEAD ??
It looks like the HEAD request was invalid, and hence 400 was
returned before any further processing. The reason why 400 was
returned should be in error log at info level.
--
Maxim Dounin
http://nginx.org/
More information about the nginx
mailing list