nginx-fpm.conf 820 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. upstream fastcgi_backend {
  16. server unix:/var/run/php/php7.2-fpm.sock;
  17. keepalive 50;
  18. }
  19. server {
  20. listen 8080;
  21. server_name localhost;
  22. root /codeigniter/;
  23. index index.php;
  24. location / {
  25. try_files $uri $uri/ /index.php?$uri&$args;
  26. }
  27. location ~ \.php$ {
  28. fastcgi_pass fastcgi_backend;
  29. fastcgi_keep_conn on;
  30. fastcgi_index index.php;
  31. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  32. include /etc/nginx/fastcgi_params;
  33. }
  34. }
  35. }