Nginx--配置文件
worker_processes 4; error_log logs/error.log; events { worker_connections 9000; use epoll; } http { include 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"'; server_tokens off; client_max_body_size 30m; keepalive_timeout 65; gzip on; gzip_min_length 1024; gzip_buffers 4 128k; gzip_http_version 1.0; gzip_comp_level 6; gzip_proxied any; gzip_types text/plain text/javascript application/x-javascript text/css text/xml image/jpg application/xml image/jpeg image/gif image/png; gzip_vary on; gzip_disable "Dalvik\."; sendfile on; # set_real_ip_from 100.97.0.0/16; real_ip_header X-Forwarded-For; include vhosts/*.conf; }