Can I log HTTP 400s to a different log file instead of my default access logs

António P. P. Almeida appa at perusio.net
Mon Nov 7 14:19:34 UTC 2011


On 7 Nov 2011 13h03 WET, nginx-forum at nginx.us wrote:

Well you can try this:

location @is-400 {
  access_log off;
}

If you want to re-purpose the 400 code you have to use the error_page
directive.

--- appa



More information about the nginx mailing list