SHARE
TWEET

Untitled

a guest Dec 13th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. user bitrix;
  2. worker_processes 8;
  3. error_log /var/log/nginx/error.log warn;
  4. pid /var/run/nginx.pid;
  5. worker_rlimit_nofile 10240;
  6.  
  7. events {
  8.     use epoll;
  9.     worker_connections  10240;
  10. }
  11.  
  12. http {
  13.     include /etc/nginx/mime.types;
  14.     default_type application/octet-stream;
  15.  
  16.     log_format main '$remote_addr - $remote_user [$time_local - upstream_response_time] $status                                '
  17.             '"$request" $body_bytes_sent "$http_referer" '
  18.             '"$http_user_agent" "$http_x_forwarded_for"';
  19.  
  20.     log_format common '$remote_addr - - [$time_local - $upstream_response_time] "$request" $status $bytes_sent "$http_referer" "$http_user_agent" $msec';
  21.  
  22.     #access_log /var/log/nginx/access.log  common;
  23.     access_log          off;
  24.     sendfile            on;
  25.     tcp_nopush          on;
  26.     tcp_nodelay         on;
  27.  
  28.     client_max_body_size        1024m;
  29.     client_body_buffer_size     4m;
  30.  
  31.     proxy_connect_timeout       300;
  32.     proxy_send_timeout          300;
  33.     proxy_read_timeout          300;
  34.     proxy_buffer_size           64k;
  35.     proxy_buffers               8 256k;
  36.     proxy_busy_buffers_size     256k;
  37.     proxy_temp_file_write_size  10m;
  38.  
  39.     error_page 500 502 503 504 /500.html;
  40.     error_page 404 = /404.php;
  41.  
  42.     gzip                on;
  43.     gzip_proxied        any;
  44.     gzip_static         on;
  45.     gzip_http_version   1.0;
  46.     gzip_types          application/x-javascript text/css;
  47.  
  48.     include conf.d/*.conf;
  49.     include bx/site_enabled/*.conf;
  50.     #include bx/site_ext_enabled/*.conf;
  51. }
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