]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nginx/templates/default/nginx.conf.erb
Turn the nginx access log off properly
[chef.git] / cookbooks / nginx / templates / default / nginx.conf.erb
index 26f53e92ecb3e7b17a06acaa21293b3ec44fd7f9..b4254568581010946e24cc2051f759b3e3abaaa8 100644 (file)
@@ -25,6 +25,8 @@ http {
                       '"$http_user_agent" "$http_x_forwarded_for"';
 
     access_log  <%= node[:nginx][:access_log] %>  main  buffer=32k flush=1m;
+<% else -%>
+    access_log  off;
 <% end -%>
 
     keepalive_timeout  65;