user nobody; worker_processes 8; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; pid logs/nginx.pid; worker_rlimit_nofile 204800; events { worker_connections 102400; accept_mutex off; use epoll; } http { include mime.types; default_type text/html; sendfile on; tcp_nopush on; keepalive_timeout 0; server_tokens off; etag off; client_body_timeout 3s; client_header_timeout 5s; proxy_connect_timeout 3s; proxy_read_timeout 10s; proxy_send_timeout 3s; proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; # limit_conn_zone $binary_remote_addr zone=addr:10m; # include vhost/disp.conf; # limit_req_zone $binary_remote_addr zone=qzctapi:10m rate=10r/s; # include global-acl.conf; server { listen 80 backlog=65535; server_name localhost ; location / { root /data/logs/nginx; # allow 10.0.0.0/8; # deny all; # autoindex on; # autoindex_exact_size on; # autoindex_localtime on; } location /server-status { stub_status on; access_log off; allow 127.0.0.1; allow 10.0.0.0/9; allow 192.168.0.0/16; allow 124.251.19.0/24; allow 114.247.94.0/24; deny all; } } # include vhost/xx.conf; }