💡
原文中文,约5000字,阅读约需12分钟。
📝
内容提要
在 /www/server/nginx/conf 中找到 Nextcloud 的 PHP 配置文件,添加 fastcgi_param front_controller_active true;,配置伪静态和安全设置,重定向请求到 index.php,禁止访问敏感内容,最后重启 Nginx 和 PHP。
🎯
关键要点
- 在 /www/server/nginx/conf 下找到 Nextcloud 的 PHP 配置文件。
- 在配置文件中添加 fastcgi_param front_controller_active true;。
- 配置伪静态和安全设置,重定向请求到 index.php。
- 禁止访问敏感内容,如 build、tests、config 等目录。
- 重启 Nginx 和 PHP 以应用更改。
➡️