user www-data; worker_processes 4; pid /var/run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; server_tokens off; server_names_hash_max_size 1024; # server_names_hash_bucket_size 64; server_name_in_redirect off; autoindex off; log_not_found off; include /etc/nginx/mime.types; default_type application/octet-stream; ## # Logging Settings ## access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; ## # Gzip Settings ## gzip on; gzip_disable "msie6"; gzip_proxied any; gzip_comp_level 5; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; ## # Virtual Host Configs ## include /etc/nginx/sites-enabled/*; server { listen 80 default; server_name _; server_name server; server_name_in_redirect on; autoindex on; index index.html; root /var/www; location /nginx_status { stub_status on; access_log off; allow 127.0.0.1; deny all; } location ~ /\.ht { deny all; } } }