Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user www-data;
- worker_processes 1;
- worker_rlimit_nofile 8192;
- error_log /var/log/nginx/error.log;
- pid /var/run/nginx.pid;
- events {
- worker_connections 1024;
- }
- http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- '$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$http_x_forwarded_for" $request_time $upstream_response_time';
- access_log /var/log/nginx/access.log main;
- client_max_body_size 32m;
- client_body_buffer_size 128k;
- client_header_buffer_size 2k;
- large_client_header_buffers 4 16k;
- ignore_invalid_headers on;
- open_file_cache max=20000 inactive=20s;
- open_file_cache_valid 30s;
- open_file_cache_min_uses 2;
- open_file_cache_errors on;
- charset utf-8;
- server_tokens off;
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 60;
- keepalive_requests 1024;
- reset_timedout_connection on;
- client_body_timeout 10;
- client_header_timeout 10;
- send_timeout 10;
- gzip on;
- gzip_comp_level 6;
- gzip_min_length 1400;
- gzip_proxied expired no-cache no-store private auth;
- gzip_types text/plain text/css text/xml text/javascript application/json application/x-javascript application/xml application/xml+rss;
- gzip_http_version 1.1;
- gzip_disable "MSIE [1-6]\.(?!.*SV1)";
- limit_conn_zone $binary_remote_addr zone=connlimit:10m;
- limit_req_zone $binary_remote_addr zone=dddynamic:10m rate=1r/s;
- limit_req_zone $binary_remote_addr zone=ddstatic:10m rate=30r/s;
- include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/sites-enabled/*;
- }
Advertisement