nginx trouble loading index file [closed]
Want to improve this question? Update the question so it'开发者_开发问答s on-topic for Stack Overflow.
Closed 9 years ago.
Improve this questionI 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?
精彩评论