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

strange map $request issue (4 replies)

$
0
0
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 ??

Viewing all articles
Browse latest Browse all 7229

Trending Articles


Practice Sheet of Right form of verbs for HSC Students


Sarah Samis, Emil Bove III


ZARIA CUMMINGS


Need radio code for IVECO Delphi Aptiv FJ5 RBT M16


Black Angus Grilled Artichokes


Ed Sheeran – Sapphire – Pre-Single [iTunes Plus M4A]


Sunny Garcia’s Ex-Wife Colleen McCullough


99 God Status for Whatsapp, Facebook


Funeral of Sir Warwick Franklin


MHDD



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>