nginx加载索引文件时遇到问题 [英] nginx trouble loading index file
本文介绍了nginx加载索引文件时遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这个虚拟主机配置
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 时它会转储
When I restart nginx it dumps
启动 nginx: 2011/04/16 18:56:34 [emerg] 2492#0:/usr/local/nginx/sites-enabled/trinityplex.com:14
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
推荐答案
也许是缺失的;在 fastcgi_pass 之后?
Maybe the missing ; after fastcgi_pass?
这篇关于nginx加载索引文件时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文