nginx-fpm.conf 779 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.3-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 /index.php?$uri&$args;
  26. }
  27. location = /index.php {
  28. fastcgi_pass fastcgi_backend;
  29. fastcgi_keep_conn on;
  30. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  31. include /etc/nginx/fastcgi_params;
  32. }
  33. }
  34. }