worker_processes  8;
worker_rlimit_nofile 100000;

error_log  logs/nginx.log crit;
pid        logs/nginx.pid;

events {
    worker_connections  40960;
}

http {
     include       mime.types;
     default_type  application/octet-stream;
	 server_names_hash_bucket_size 256;
     log_format    main '$remote_addr - $remote_user [$time_iso8601] "$request" '
                        '$status $body_bytes_sent '
						'"$http_referer" "$http_user_agent" ';
     access_log  off;
	 server_tokens  on;
	 sendfile       on;
	 sendfile_max_chunk 512k;
     keepalive_timeout   5;
	 include upstream.conf;
	 gzip  on;
     gzip_disable “MSIE [1-6].(?!.*SV1)”;
     gzip_http_version 1.1;
     gzip_vary on;
     gzip_proxied any;
	 gzip_min_length 1000;
	 gzip_buffers 16 8k;
	 gzip_comp_level 6;
     gzip_types text/plain text/css text/xml text/javascript application/json application/x-javascript application/xml application/xml+rss;

    #HTTPS server
    #server {
    #listen       443;
    #server_name  localhost;
    #ssl                  on;
    #ssl_certificate      cert.pem;
    #ssl_certificate_key  cert.key;
    #ssl_session_timeout  5m;
    #ssl_protocols  SSLv2 SSLv3 TLSv1;
    #ssl_ciphers  HIGH:!aNULL:!MD5;
    #ssl_prefer_server_ciphers   on;
    #location / {
    #root   html;
    #index  index.html index.htm;
    #}
    #}
	
#include saferesolve.conf;
include vhosts.conf;
}
