ServerSetup: nginx.conf

File nginx.conf, 1.0 kB (added by faisal, 16 years ago)
Line 
1user  www-data;
2worker_processes  4;
3
4events {
5        worker_connections  2048;
6}
7 
8http {
9        include       mime.types;
10        default_type  application/octet-stream;
11
12        client_header_timeout  3m;
13    client_body_timeout    3m;
14        send_timeout           3m;
15    client_header_buffer_size    1k;
16    large_client_header_buffers  4 4k;
17 
18    gzip on;
19    gzip_min_length  1100;
20    gzip_buffers     4 8k;
21    gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
22
23        output_buffers   1 32k;
24    postpone_output  1460;
25 
26    sendfile         on;
27    tcp_nopush       on;
28 
29    tcp_nodelay      on;
30 
31    keepalive_timeout  75 20;
32    log_format main '$remote_addr - $remote_user [$time_local] '
33                  '"$request" $status  $body_bytes_sent "$http_referer" '
34                  '"$http_user_agent" "$http_x_forwarded_for"';
35 
36    access_log  /var/log/nginx_access.log  main;
37    error_log  /var/log/nginx_error.log debug;
38        include /usr/local/nginx/sites-enabled/*;
39}