您好,欢迎访问一九零五行业门户网

nginx下fastcgi_param运行php出现空白页的问题

fastcgi_param script_filename /home/www/scripts/php$fastcgi_script_name;fastcgi_param query_string $query_string;
复制代码
parameter script_filename is used by php for determining the name of script to execute, and query_string contains the parameters of the request.
所以,在没有定义script_filename这个系统变量时,php是没法解释执行的。
此变量的定义可以写在nginx的配置文件nginx.conf里,也可以写在外部文件,然后用include的方式在nginx.conf里包含进来。您可能感兴趣的文章:nginx+php-fpm页面显示空白的解决方法有关nginx+php-fpm配置文件的组织结构nginx下跑php的程序,返回200,但是空白页
其它类似信息

推荐信息