VPS侦探论坛

 找回密码
 注册
查看: 3335|回复: 2

Nginx return 301跳转问题

[复制链接]
发表于 2017-1-23 21:16:05 | 显示全部楼层 |阅读模式

Lnmp 1.4 Nginx 1.11.8
我一个站 www.xxx.com xxx.com 这两个 登记在nginx conf里面
我只要使用者使用 xxx.com 而不是 www.xxx.com

我写 return 301 https://xxx.com 这样 ,运行是php文件
为啥会出现 chrome error : redirect too many times, pls clear cookies and try again

我在同一个xxx.com.conf文件的ssl 里面 server_name: xxx.com
有什么办法解决吗
感谢
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-1-24 08:59:29 | 显示全部楼层


贴配置文件看看,你是用的什么程序
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-1-25 18:02:51 | 显示全部楼层

重新安裝了,搞定~~ 感謝
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-27 23:25 , Processed in 0.025182 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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