user nginx; worker_processes 2; pid /var/run/nginx.pid; events { worker_connections 64; } http { ## # General settings and defaults ## server_tokens off; default_type application/octet-stream; charset utf-8; ignore_invalid_headers on; recursive_error_pages on; source_charset utf-8; sendfile on; tcp_nopush on; tcp_nodelay on; max_ranges 0; server_names_hash_bucket_size 64; server_names_hash_max_size 512; include /etc/nginx/mime.types; ## # Logging Settings ## access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log debug; ## # Limits ## client_body_buffer_size 1K; client_header_buffer_size 1k; client_max_body_size 1k; large_client_header_buffers 2 1k; ## # Timeouts ## client_body_timeout 10; client_header_timeout 10; keepalive_timeout 5 5; send_timeout 10; ## # Gzip Settings ## gzip on; #gzip_static on; gzip_vary on; gzip_disable "msie6"; gzip_proxied any; gzip_comp_level 6; gzip_buffers 16 8k; gzip_http_version 1.1; gzip_types text/plain text/css text/javascript image/jpeg image/png image/x-icon; ## # Pass php-files to php-fpm ## upstream php { server unix:/var/run/www.sock; } ## # Virtual Host Configs ## include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; }