quocvuongdn

default nginx.conf

Mar 10th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.90 KB | None | 0 0
  1. worker_processes 1;
  2.  
  3. daemon off;
  4.  
  5. events {
  6.   worker_connections 1024;
  7. }
  8.  
  9. error_log   /var/log/nginx/error.log warn;
  10. pid         /var/run/nginx.pid;
  11.  
  12. http {
  13.   include /etc/nginx/conf/mime.types;
  14.   default_type application/octet-stream;
  15.  
  16.   log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  17.   '$status $body_bytes_sent "$http_referer" '
  18.   '"$http_user_agent" "$http_x_forwarded_for"';
  19.  
  20.   access_log /var/log/nginx/access.log main;
  21.  
  22.   sendfile on;
  23.   #tcp_nopush on;
  24.  
  25.   keepalive_timeout 65;
  26.  
  27.   gzip on;
  28.   gzip_disable "msie6";
  29.  
  30.   gzip_vary on;
  31.   gzip_proxied any;
  32.   gzip_comp_level 6;
  33.   gzip_buffers 16 8k;
  34.   gzip_http_version 1.1;
  35.   gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  36.   # tells the server to use on-the-fly gzip compression.
  37.  
  38.   include /etc/nginx/conf.d/*.conf;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment