daily pastebin goal
31%
SHARE
TWEET

nginx.conf

MrFastDie Jan 6th, 2017 186 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. events {
  2.     worker_connections  65500;
  3.     use epoll;
  4.     multi_accept on;
  5. }
  6.  
  7. http {
  8.     keepalive_timeout 65;
  9.     keepalive_requests 100000;
  10.     sendfile         on;
  11.     tcp_nopush       on;
  12.     tcp_nodelay      on;
  13.  
  14.     client_body_buffer_size    128k;
  15.     client_max_body_size       10m;
  16.     client_header_buffer_size    1k;
  17.     large_client_header_buffers  4 4k;
  18.     output_buffers   1 32k;
  19.     postpone_output  1460;
  20.  
  21.     client_header_timeout  3m;
  22.     client_body_timeout    3m;
  23.     send_timeout           3m;
  24.  
  25.     open_file_cache max=1000 inactive=20s;
  26.     open_file_cache_valid 30s;
  27.     open_file_cache_min_uses 5;
  28.     open_file_cache_errors off;
  29.  
  30.     gzip on;
  31.     gzip_min_length  1000;
  32.     gzip_buffers     4 4k;
  33.     gzip_types       text/html application/x-javascript text/css application/javascript text/javascript text/plain text/xml application/json application/vnd.ms-fontobject application/x-font-opentype application/x-font-truetype application/x-font-ttf application/xml font/eot font/opentype font/otf image/svg+xml image/vnd.microsoft.icon;
  34.     gzip_disable "MSIE [1-6]\.";
  35.  
  36.     aio on;
  37.     directio       8m;
  38.  
  39.     access_log off;
  40.     error_log off;
  41.  
  42.     server {
  43.         listen 80;
  44.         server_name _;
  45.  
  46.         index index.html;
  47.  
  48.         location /files {
  49.             root /usr/share/nginx;
  50.         }
  51.     }
  52. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top