nginx加载索引文件时出错

时间:2011-04-16 17:58:14

标签: php 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;
    }
}

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

  

开始nginx:2011/04/16 18:56:34 [emerg] 2492#0:/usr/local/nginx/sites-enabled/trinityplex.com:14中“fastcgi_pass”指令中的参数数量无效< / p>

1 个答案:

答案 0 :(得分:32)

也许是失踪;在fastcgi_pass之后?