Php fpm找不到chrooted nginx中的文件

Php fpm找不到chrooted nginx中的文件,nginx,php,chroot,jail,Nginx,Php,Chroot,Jail,我在chroot()中安装了arch-linux和nginx。这很有效 现在我想让fastcgi运行起来。我将php fpm套接字设置为127.0.0.1:9000,以便从chroot(/srv/http)访问它 成功打印html文件时,php文件“未找到”。在nginx日志中,我发现: FastCGI sent in stderr: "primary script unknown" while reading response header from upstream, client: 10.

我在chroot()中安装了arch-linux和nginx。这很有效

现在我想让fastcgi运行起来。我将php fpm套接字设置为127.0.0.1:9000,以便从chroot(/srv/http)访问它

成功打印html文件时,php文件“未找到”。在nginx日志中,我发现:

FastCGI sent in stderr: "primary script unknown" while reading response header from upstream, client: 10.211.55.2, server: localhost, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000:, host: "10.211.55.6".
因此,我认为php fpm没有找到该文件,因为路径在nginx chroot中是绝对的,它在实际根中搜索。所以我补充说,是的,非常难看,以下是我的设置,但结果没有改变。我如何调试它,或者更好,找到一个干净的解决方案

location ~ \.php$ {
    fastcgi_pass  127.0.0.1:9000;
    fastcgi_index index.php;
    include       fastcgi_params;
    fastcgi_param SCRIPT_FILENAME  /srv/http$document_root$fastcgi_script_name
}

坦克很多。

没人有主意。一个调试就足够了。是否可以将变量打印到shell或文件中?ThanksI遇到了同样的问题。我要找出一个解决办法。。。