nginx.conf 913 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. user www-data;
  2. worker_processes auto;
  3. error_log stderr error;
  4. worker_rlimit_nofile 200000;
  5. events {
  6. worker_connections 16384;
  7. }
  8. http {
  9. include /etc/nginx/mime.types;
  10. default_type application/octet-stream;
  11. access_log off;
  12. server_tokens off;
  13. sendfile on;
  14. keepalive_timeout 65;
  15. keepalive_disable none;
  16. keepalive_requests 10000;
  17. upstream fastcgi_backend {
  18. server unix:/var/run/php/php7.3-fpm.sock;
  19. keepalive 40;
  20. }
  21. server {
  22. listen 8080;
  23. server_name localhost;
  24. root /zend/public/;
  25. index index.php;
  26. location / {
  27. fastcgi_pass fastcgi_backend;
  28. fastcgi_keep_conn on;
  29. fastcgi_param SCRIPT_FILENAME $document_root/index.php;
  30. fastcgi_param PATH_INFO $uri;
  31. include /etc/nginx/fastcgi_params;
  32. }
  33. }
  34. }