1 user daemon;
2 worker_processes auto;
3 error_log logs/error.log;
4 pid ../nginx.pid;
5 worker_rlimit_nofile 65535;
6 # Load dynamic modules. See /usr/share/nginx/README.dynamic.
7 #include /usr/share/nginx/modules/*.conf;
8 events {
9 use epoll;
10 worker_connections 10240;
11 }
12
13
14 http {
15 log_format main '$remote_addr - $remote_user [$time_local] "$request" '
16 '$status $body_bytes_sent "$http_referer" '
17 '"$http_user_agent" "$http_x_forwarded_for" "$upstream_cache_status" "$upstream_addr" "$sent_http_content_range"'
18
19 access_log logs/access.log main;
20 charset utf-8;
21 sendfile on;
22 tcp_nopush on;
23 tcp_nodelay on;
24 keepalive_timeout 65;
25 keepalive_requests 2048;
26 types_hash_max_size 2048;
27 client_max_body_size 100M;
28 include mime.types;
29 default_type application/octet-stream;
30
31 server_tokens off;
32 gzip on;
33 gzip_min_length 1k;
34 gzip_buffers 4 32k;
35 gzip_http_version 1.1;
36 gzip_comp_level 2;
37 gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
38 gzip_vary on;
39 gzip_disable "MSIE [1-6]\.";
40
41 include ../vhost/*.conf;
42 }