Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nginx trouble loading index file [closed]

Tags:

php

nginx

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

like image 485
yety Avatar asked Apr 16 '11 17:04

yety


1 Answers

Maybe the missing ; after fastcgi_pass?

like image 93
Emil Vikström Avatar answered Sep 27 '22 21:09

Emil Vikström