user nginx nginx; worker_processes 1; timer_resolution 100ms; worker_rlimit_nofile 512; error_log /var/log/nginx/error.log info; events { worker_connections 512; use epoll; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] ' '"$request" $status $bytes_sent ' '"$http_referer" "$http_user_agent" '; sendfile on; tcp_nopush on; tcp_nodelay on; gzip on; gzip_min_length 4096; gzip_buffers 16 8k; gzip_types text/css text/xml application/x-javascript text/plain application/xml; server_tokens off; keepalive_timeout 8; reset_timedout_connection on; # Protect against a bug in IE 10&11, http://habrahabr.ru/company/pt/blog/249809/ : add_header X-Frame-Options SAMEORIGIN; server { listen *:80; server_name localhost; access_log /var/log/nginx/access.log main; root /1; autoindex on; expires 1d; } }