hgjgh 发表于 2018-11-15 07:29:14

配置Nginx 支持php-12163069

  #vim nginx.conf
  location ~ .php$ {
  root      html;
  fastcgi_pass   127.0.0.1:9000;
  fastcgi_indexindex.php;
  fastcgi_paramSCRIPT_FILENAME$docoument_root$fastcgi_script_name;
  include      fastcgi_params;
  }
  注意:启动服务时,可能会提示$docoument_root错误之类的,如果提示,就写全路径/usr/local/nginx/html即可 。

页: [1]
查看完整版本: 配置Nginx 支持php-12163069