VPS侦探论坛
标题:
lnmp1.5 nextcloud 13.0.4 404 not found
[打印本页]
作者:
blue2008
时间:
2018-6-29 18:01
标题:
lnmp1.5 nextcloud 13.0.4 404 not found
如题,lnmp1.5,都是用的vhost,跑了一个pi-board可以运行,另外一个vhost nextcloud 的,php页面不解析,
访问首页的话404报错,手动加上index.php的话,会下载index.php文件,
访问存在的 a.com/1.txt 这种,也会报404
有遇到过的朋友吗?
感觉是rewrite规则的问题,配置是用的官网的
https://docs.nextcloud.com/server/12/admin_manual/installation/nginx.html
@军哥,lnmp能否加个nextcloud 的 rewrite rules 啊
作者:
blue2008
时间:
2018-6-29 18:24
补充,论坛搜索过,官网也搜过,好久都没有解决
php.ini找到cgi.fix_pathinfo=0 更改为:cgi.fix_pathinfo=1,这一步也做了
include enable-php_pathinfo.conf 的话就内部错误。。
作者:
licess
时间:
2018-6-29 20:19
和cgi.fix_pathinfo没关系,不要改这个的默认参数
lnmp vhost add 添加的配置文件,只是需要多在添加虚拟主机过程中选择启用pathinfo
要加伪静态就3行,官网上都写了
location / {
rewrite ^ /index.php$request_uri;
}
欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/)
Powered by Discuz! X3.4