相关疑难解决方法(0)

nginx加载索引文件时出错

我有这个vhost conf

server { # php/fastcgi
    listen       80;
    server_name  trinityplex.com www.trinity.com;
    error_log   /home/web/trinity_web/log/error.log;
    access_log   /home/web/trinity_web/log/access.log;
    root /home/web/trinity_web/public;

    location / {
      index    index.html index.htm index.php;
    }

    location ~ .php$ {
      fastcgi_pass   127.0.0.1:9000
      fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
      fastcgi_index  index.php;
      include        fastcgi_params;
    }
}
Run Code Online (Sandbox Code Playgroud)

当我重新启动nginx时它会转储

nginx的开始:2011年4月16日18时56分34秒[EMERG] 2492#0:在/usr/local/nginx/sites-enabled/trinityplex.com:14 "fastcgi_pass" 指令的参数数目无效

php nginx

10
推荐指数
1
解决办法
1万
查看次数

标签 统计

nginx ×1

php ×1