server_names_hash_bucket_size 128;
+<% if node[:nginx][:access_log] -%>
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 /var/log/nginx/access.log main buffer=32k flush=1m;
+ access_log <%= node[:nginx][:access_log] %> main buffer=32k flush=1m;
+<% end -%>
keepalive_timeout 65;