+# DOC: http://blog.martinfjordvald.com/2010/07/nginx-primer/
events {
multi_accept on;
use epoll;
log_format main
'$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$http_x_forwarded_for" nocache:$no_cache';
+ '"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main buffer=32k;
client_body_buffer_size 4K;
# NOTE: % getconf PAGESIZE
keys_zone=microcache:10m
inactive=5m
max_size=64m;
+ fastcgi_cache microcache;
gzip on;
gzip_buffers 16 8k;
gzip_comp_level 6;
types_hash_max_size 2048;
include /etc/nginx/site.d/*/server.conf;
}
-pid /var/run/nginx.pid;
+pid /run/nginx.pid;
user www-data;
worker_processes 2;