nginx-fpm.conf 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. user www-data;
  2. worker_processes auto;
  3. error_log stderr error;
  4. worker_rlimit_nofile 200000;
  5. events {
  6. worker_connections 32768;
  7. multi_accept off;
  8. }
  9. http {
  10. access_log off;
  11. server_tokens off;
  12. sendfile on;
  13. tcp_nopush on;
  14. tcp_nodelay on;
  15. keepalive_timeout 65;
  16. open_file_cache max=2000 inactive=20s;
  17. open_file_cache_valid 60s;
  18. open_file_cache_min_uses 5;
  19. open_file_cache_errors off;
  20. fastcgi_buffers 256 16k;
  21. fastcgi_buffer_size 128k;
  22. fastcgi_connect_timeout 30s;
  23. fastcgi_send_timeout 60s;
  24. fastcgi_read_timeout 60s;
  25. fastcgi_busy_buffers_size 256k;
  26. fastcgi_temp_file_write_size 256k;
  27. reset_timedout_connection on;
  28. server_names_hash_bucket_size 100;
  29. upstream fastcgi_backend {
  30. server unix:/var/run/php/php7.3-fpm.sock;
  31. keepalive 50;
  32. }
  33. server {
  34. listen 8080;
  35. server_name localhost;
  36. root /php;
  37. index index.php;
  38. location / {
  39. fastcgi_pass fastcgi_backend;
  40. fastcgi_keep_conn on;
  41. fastcgi_param SCRIPT_FILENAME $document_root/index.php;
  42. fastcgi_param PATH_INFO $uri;
  43. include /etc/nginx/fastcgi_params;
  44. }
  45. }
  46. }