Advertisement
paradox2k

nginx.conf

Mar 11th, 2015
35
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. user  www-data;
  2. worker_processes  8;
  3.  
  4. error_log  /var/log/nginx/error.log;
  5. pid        /var/run/nginx.pid;
  6.  
  7. events {
  8.     use epoll;
  9.     worker_connections  8192;
  10.     multi_accept on;
  11. }
  12.  
  13. http {
  14.     include /etc/nginx/mime.types;
  15.    
  16.     default_type  application/octet-stream;
  17.  
  18.     log_format  main  "myaccesslogformat";
  19.     access_log  /var/log/nginx/access.log  main;
  20.     log_format traffic "myowntrafficformat";
  21.     access_log /var/log/nginx/traffic.log traffic;
  22.    
  23.     gzip  on;
  24.     gzip_comp_level 6;
  25.     gzip_proxied any;
  26.     gzip_min_length 1100;
  27.     gzip_types  text/plain text/css text/xml image/png image/gif image/jpeg application/x-javascript application/javascript application/xml application/xml+rss text/javascript;
  28.     gzip_vary  on;
  29.     gzip_buffers 16 8k;
  30.     gzip_http_version 1.1;
  31.     gzip_disable "MSIE [1-6]\.(?!.*SV1)";  
  32.      
  33.     sendfile        on;
  34.     #tcp_nopush     on;
  35.     server_tokens off;
  36.     keepalive_timeout  175;
  37.  
  38.     #fastcgi_send_timeout 150s;
  39.     #fastcgi_read_timeout 150s;
  40.    
  41.     include /etc/nginx/conf.d/*.conf;
  42.  
  43.     }
Advertisement
RAW Paste Data Copied
Advertisement