VPS侦探论坛

 找回密码
 注册
查看: 2844|回复: 3

【已解决】lnmp1.4 nginx出错

[复制链接]
发表于 2017-3-7 09:10:52 | 显示全部楼层 |阅读模式

重启lnmp时失败,nginx -t 提示 duplicate location "/" in /usr/local/nginx/conf/wordpress.conf:1 删除 location / {
try_files $uri $uri/ /index.php?$args;
}
后可以启动lnmp,但是瀑布流页面的第二页提示404。

从lnmp1.3打包迁移的1.4

[ 本帖最后由 空裤兜 于 2017-3-7 12:59 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-3-7 12:23:26 | 显示全部楼层


涉及固定链接的网页全部提示404错误
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-3-7 12:59:13 | 显示全部楼层

已解决,conf配置文件的问题
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-3-7 13:08:26 | 显示全部楼层



两个location /
是没法共存的
你自己添加 location / 的是什么内容?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-27 17:30 , Processed in 0.025785 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表