X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fnginx%2Fnginx.conf;h=f8d0328d028763586fad2fd489f4cb293e3195ce;hp=fc2e23d53c71512a485f458b1fd4b52065bd7389;hb=2d48a198262604098443c6a90e58b0084600a4d7;hpb=c2a9a967e764ea91c936576dadf97542bd6d4c12 diff --git a/etc/nginx/nginx.conf b/etc/nginx/nginx.conf index fc2e23d..f8d0328 100644 --- a/etc/nginx/nginx.conf +++ b/etc/nginx/nginx.conf @@ -1,3 +1,5 @@ +# DOC: http://blog.martinfjordvald.com/2010/07/nginx-primer/ +daemon on; events { multi_accept on; use epoll; @@ -7,7 +9,9 @@ http { 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" nocache:$no_cache document_root:$document_root' + ' fastcgi_script_name:$fastcgi_script_name' + ' request_filename:$request_filename'; access_log /var/log/nginx/access.log main buffer=32k; client_body_buffer_size 4K; # NOTE: % getconf PAGESIZE @@ -26,6 +30,7 @@ http { keys_zone=microcache:10m inactive=5m max_size=64m; + fastcgi_cache microcache; gzip on; gzip_buffers 16 8k; gzip_comp_level 6;