我的Nginx报告错误日志中
2012/07/24 13:00:16 [notice] 19056#0: *3275841 "^(GET|HEAD|POST)$" matches "GET", client: 42.114.191.177, server: _, request: "GET /template/images/loading.gif HTTP/1.1", host: "domain.com", referrer: "http://domain.com/"</code></pre>
并在nginx.conf
server { if ($request_method !~ ^(GET|HEAD|POST)$ ) { return 404; } }
我不知道为什么nginx注意到在error_log中
因为您的错误日志级别是notice , info或debug 。 http://nginx.org/r/error_log