Advertisement
Guest User

Untitled

a guest
Sep 25th, 2024
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. # Even doing this, Nginx will still try to create the default error file, and
  2. # log a non-fatal error when it fails. After that things will work, however.
  3. error_log logs/error.log;
  4.  
  5. worker_processes 1;
  6.  
  7. events {
  8. worker_connections 256;
  9. use epoll;
  10. multi_accept on;
  11. }
  12.  
  13. pid nginx_user.pid;
  14.  
  15. http {
  16.  
  17. # Set an array of temp and cache file options that will otherwise default to
  18. # restricted locations accessible only to root.
  19. client_body_temp_path tmp/client_body;
  20. fastcgi_temp_path tmp/fastcgi_temp;
  21. proxy_temp_path tmp/proxy_temp;
  22. scgi_temp_path tmp/scgi_temp;
  23. uwsgi_temp_path tmp/uwsgi_temp;
  24.  
  25. access_log logs/access.log;
  26. error_log logs/error.log info;
  27.  
  28. log_format main '$remote_addr - $remote_user [$time_local] $status '
  29. '"$request" $body_bytes_sent "$http_referer" '
  30. '"$http_user_agent" "$http_x_forwarded_for"';
  31.  
  32. include conf/mime.types;
  33. index index.html index.htm index.php;
  34. default_type application/octet-stream;
  35.  
  36. aio threads;
  37. sendfile on;
  38. tcp_nopush on;
  39. tcp_nodelay on;
  40. server_tokens off;
  41.  
  42. proxy_buffering off;
  43. proxy_buffer_size 128k;
  44. proxy_buffers 100 128k;
  45.  
  46. server_names_hash_bucket_size 128;
  47. client_body_timeout 12;
  48. client_header_timeout 12;
  49. keepalive_requests 10;
  50. keepalive_timeout 60 60;
  51. send_timeout 30;
  52.  
  53. client_max_body_size 0;
  54. client_body_buffer_size 128M;
  55.  
  56. include conf.d/*.conf;
  57. include sites-enabled/*;
  58.  
  59. }
  60.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement