Howto disable access log in nginx

The following configuration disables logging the http requests in nginx

=====
http {
include mime.types;
default_type application/octet-stream;
server_names_hash_bucket_size 64;

#log_format main '$remote_addr - $remote_user [$time_local] $request ‘
# ‘”$status” $body_bytes_sent “$http_referer” ‘
# ‘”$http_user_agent” “$http_x_forwarded_for”‘;

#access_log logs/access.log main;
access_log off;

====

Share and Enjoy:
  • Digg
  • Mixx
  • del.icio.us
  • StumbleUpon
  • Facebook
  • TwitThis
  • Technorati
  • Google

Tags: ,

Leave a Reply