|
@@ -0,0 +1,64 @@
|
|
|
+user nginx nginx;
|
|
|
+worker_processes auto;
|
|
|
+worker_cpu_affinity auto;
|
|
|
+#error_log /usr/local/webserver/nginx/logs/nginx_error.log crit;
|
|
|
+pid /app/soft/tengine/nginx.pid;
|
|
|
+worker_rlimit_nofile 102400;
|
|
|
+events
|
|
|
+{
|
|
|
+use epoll;
|
|
|
+worker_connections 51200;
|
|
|
+}
|
|
|
+
|
|
|
+http
|
|
|
+{
|
|
|
+include mime.types;
|
|
|
+default_type application/octet-stream;
|
|
|
+source_charset GB2312;
|
|
|
+server_names_hash_bucket_size 256;
|
|
|
+client_header_buffer_size 16k;
|
|
|
+large_client_header_buffers 4 16k;
|
|
|
+
|
|
|
+#size limits
|
|
|
+client_max_body_size 50m;
|
|
|
+client_body_buffer_size 512k;
|
|
|
+client_header_timeout 3m;
|
|
|
+client_body_timeout 3m;
|
|
|
+send_timeout 3m;
|
|
|
+sendfile on;
|
|
|
+server_tokens off;
|
|
|
+tcp_nopush on;
|
|
|
+keepalive_timeout 5;
|
|
|
+tcp_nodelay on;
|
|
|
+server_tag off;
|
|
|
+server_info off;
|
|
|
+#####
|
|
|
+gzip on;
|
|
|
+gzip_min_length 1k;
|
|
|
+gzip_buffers 4 16k;
|
|
|
+gzip_http_version 1.1;
|
|
|
+gzip_comp_level 7;
|
|
|
+gzip_types text/plain application/x-javascript text/css application/xml;
|
|
|
+gzip_vary on;
|
|
|
+
|
|
|
+proxy_cache_path /data/nginx_cache levels=1:2 keys_zone=easou:1024m;
|
|
|
+proxy_redirect off ;
|
|
|
+#proxy_http_version 1.1;
|
|
|
+#proxy_set_header Connection "";
|
|
|
+proxy_set_header Host $host;
|
|
|
+proxy_set_header Referer $http_referer;
|
|
|
+proxy_set_header Cookie $http_cookie;
|
|
|
+proxy_set_header X-Real-IP $remote_addr;
|
|
|
+proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
+proxy_connect_timeout 300;
|
|
|
+proxy_send_timeout 30;
|
|
|
+proxy_read_timeout 60;
|
|
|
+proxy_buffer_size 512k;
|
|
|
+proxy_buffers 128 512k;
|
|
|
+proxy_busy_buffers_size 512k;
|
|
|
+proxy_temp_file_write_size 512k;
|
|
|
+proxy_next_upstream error timeout http_503;
|
|
|
+
|
|
|
+include vhosts/www/www.conf;
|
|
|
+#include vhosts/qd/wangye.conf;
|
|
|
+}
|