开发者

nginx trouble loading index file [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it'开发者_开发问答s on-topic for Stack Overflow.

Closed 9 years ago.

Improve this question

I have this 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;
    }
}

When I restart nginx it dumps

Starting nginx: 2011/04/16 18:56:34 [emerg] 2492#0: invalid number of arguments in "fastcgi_pass" directive in /usr/local/nginx/sites-enabled/trinityplex.com:14


Maybe the missing ; after fastcgi_pass?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜