参考 Nginx 官方 FastCGI 例子:https://www.nginx.com/resources/wiki/start/topics/examples/fastcgiexample/

location ~ [^/].php(/|$)
{
  try_files $uri =404;
  fastcgi_pass  unix:/tmp/php-cgi-80.sock;
  fastcgi_index index.php;
  include fastcgi.conf;
  include pathinfo.conf;

  fastcgi_param  HTTP_HOST www.codesou.cn;
  fastcgi_param  SERVER_NAME www.codesou.cn;
  fastcgi_param  SERVER_SOFTWARE  6666666666666;
}