gpt4 book ai didi

ubuntu - 使用 nginx 配置 owncloud 的 Fastcgi 参数

转载 作者:行者123 更新时间:2023-12-04 19:27:19 25 4
gpt4 key购买 nike

所以有a site我正在配置我的 Ubuntu 服务器。大约 2 年前我做过一次,但从那以后发生了很多变化。比如现在有php8.0,owncloud还不支持。无论如何,我有 php7.4,我正在尝试配置我的 /etc/nginx/sites-available/mydomainname.com config 文件(当然是我的真实域名),但我无法让它工作。我已经尝试了很多 fastcgi 参数示例,但都没有奏效。 The site I mentioned has also an example它在 2 年前有效,但现在无效。我得到同样的错误:FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream .
有谁能够帮我?这个配置有什么问题?

location ~ [^/].php(/|$) {
fastcgi_split_path_info ^(.+?.php)(/.*)$;
fastcgi_pass unix:/var/run/php7.4-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}

最佳答案

如果有一天有人需要这个,我发现了这个问题。我检查了/etc/nginx/中的 fastcgi_params 文件,但没有看到缺少一行。这个:fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;感谢理查德史密斯的帮助。

关于ubuntu - 使用 nginx 配置 owncloud 的 Fastcgi 参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69852217/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com