# CoreModule # user _nginx _nginx; worker_processes 2; #worker_cpu_affinity 0001 0010 0100 1000; pid /var/run/nginx.pid; # EventsModule # events { #use epoll; worker_connections 1024; } http { # HttpCoreModule # include mime.types; default_type application/octet-stream; keepalive_timeout 65 65; sendfile on; # cache configuration open_file_cache off; open_file_cache_errors off; open_file_cache_min_uses 1; open_file_cache_valid 60; # HttpCharsetModule # charset utf-8; # LogModule # # Caution: these are the global nginx logs, *not* the virtual hosts logs. # The default format for the access log is "combined". access_log off; error_log /var/log/nginx/error.log crit; # HttpMainModule open_log_file_cache off; # GzipModule # gzip on; gzip_buffers 256 4k; gzip_comp_level 1; gzip_disable "msie6"; gzip_http_version 1.1; gzip_min_length 0; gzip_proxied off; gzip_types text/plain text/xml text/javascript application/x-javascript text/css application/atom+xml application/rss+xml; gzip_vary off; # HttpHeadersModule # expires 4h; # AutoIndex autoindex on; autoindex_exact_size on; autoindex_localtime on; include default_vhost; include machine.name; include sites/virtual_host; }