Nevermind, I see there are multiple such cases, so I guess it's by design that you don't catch the error at the parsing stage. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,250869,251093#msg-251093