8
当我重新启动nginx的它转储nginx的麻烦加载索引文件
开始nginx的我有这个虚拟主机的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; } }
:2011年4月16日18时56分34秒[EMERG] 2492# 0:在/usr/local/nginx/sites-enabled/trinityplex.com:14中的“fastcgi_pass”指令中参数的无效数量:
哦,上帝,真是尴尬,固定。 但它给了我502在conf中指定的错误网关和错误日志为空。有其他想法吗? – yety 2011-04-16 21:42:00
在这种情况下,请检查php-fpm实际上是否在'fastcgi_pass'(您的情况下为'127.0.0.1:9000')指定的位置运行。 (写下此回复可能会遇到同样的问题) – mre 2016-08-22 08:35:46