Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.52 KB | None | 0 0
  1. user django;                                                                                                                         [27/1944]
  2. worker_processes 2;
  3.  
  4. error_log   /var/log/nginx/error.log warn;
  5. pid         /var/run/nginx.pid;
  6.  
  7. events {
  8.     worker_connections 1024;
  9.     ## accept_mutex off;
  10.     ## use epoll;
  11. }
  12.  
  13. http {
  14.     include       /etc/nginx/mime.types;
  15.     default_type  application/octet-stream;
  16.  
  17.     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  18.                       '$status $body_bytes_sent "$http_referer" '
  19.                       '"$http_user_agent" "$http_x_forwarded_for"';
  20.  
  21.     access_log  /var/log/nginx/access.log  main;
  22.  
  23.     sendfile        on;
  24.     ## tcp_nopush     on;
  25.  
  26.     types_hash_max_size 2048;
  27.     server_names_hash_bucket_size 64;
  28.  
  29.     gzip on;
  30.     gzip_http_version 1.0;
  31.     gzip_proxied any;
  32.     gzip_min_length 500;
  33.     gzip_disable "MSIE [1-6]\.";
  34.     gzip_types text/plain text/xml text/css text/comma-separated-values
  35.                text/javascript application/x-javascript application/atom+xml;
  36.  
  37.     keepalive_timeout 75s;
  38.     keepalive_requests 1000;
  39.     reset_timedout_connection on;
  40.  
  41.     # fastcgi_buffers 8 16k;
  42.     # fastcgi_buffer_size 32k;
  43.     # fastcgi_connect_timeout 300;
  44.     # fastcgi_send_timeout 300;
  45.     # fastcgi_read_timeout 300;
  46.  
  47.     proxy_buffers 8 8k;
  48.     proxy_intercept_errors on;
  49.     proxy_connect_timeout 75s;
  50.     proxy_read_timeout 128s;
  51.     proxy_send_timeout 128s;
  52.  
  53.     include /etc/nginx/conf.d/*.conf;
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement