Bad requests with 0-byte response

Jean-Baptiste Quenot jbq at caraldi.com
Wed Dec 2 13:27:19 MSK 2009


I found how to activate http logging on specific parts of my site:
[1]error_log directive can be used in the server sections, and
debug_http argument needs to be specified:

Example:

http {
  server {
    server_name one.org;
    error_log logs/one.error debug_http;
  }
}

By chance I also noticed that error_log is also supported in specific locations:

http {
  server {
    server_name one.org;
    location /somewhere {
        error_log logs/one.error debug_http;
    }
  }
}

Thats's great!
-- 
Jean-Baptiste Quenot

[1] http://wiki.nginx.org/NginxHttpMainModule#error_log




More information about the nginx mailing list