LNMP环境安装nextcloud、owncloud需开启pathinfo

2017年9月5日20:53:07网站建设评论2,380

使用军哥的LNMP一键安装包配置的网站运行环境,近段时间在新建nextcloud、owncloud站点时遇到安装成功后打开页面直接404错误(nginx虚拟机配置均参照官方)的问题。文章源自堕落的鱼-https://www.duoluodeyu.com/2463.html

这是由于nextcloud、owncloud对pathinfo有依赖,需要开启pathinfo,军哥LNMP一键安装包开启pathinfo方法如下:文章源自堕落的鱼-https://www.duoluodeyu.com/2463.html

LNMP v1.2、v1.3、v1.4,修改对应虚拟主机的配置文件:文章源自堕落的鱼-https://www.duoluodeyu.com/2463.html

将include enable-php.conf;替换为include enable-php-pathinfo.conf;文章源自堕落的鱼-https://www.duoluodeyu.com/2463.html

lnmp v1.1,修改对应虚拟主机的配置文件文章源自堕落的鱼-https://www.duoluodeyu.com/2463.html

去掉#include pathinfo.conf前面的#,把try_files $uri =404; 前面加上# 注释掉。文章源自堕落的鱼-https://www.duoluodeyu.com/2463.html

修改pathinfo需要执行lnmp nginx restart重启nginx使生效。文章源自堕落的鱼-https://www.duoluodeyu.com/2463.html

 文章源自堕落的鱼-https://www.duoluodeyu.com/2463.html

匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定