I want to match a request like GET /%ef HTTP/1.1. So I created this configuration: location /%ef { return 400; } I compiled nginx with debug, and did curl -v 'localhost:8080/%ef'. I got 404 instead of my expected 400. Here is the relevant part of the log: 2015/03/29 17:40:43 48043#0: *5 http request line: "GET /%ef HTTP/1.1" 2015/03/29 17:40:43 48043#0: *5 s:0 in:'2F:/'by sandinmyjoints - How to...