rewrite or internal redirection cycle while internally redirecting to “/index.html“

rewrite or internal redirection cycle while internally redirecting to “/index.html“

nginx.conf中root定位的前端代码路径对着,但是就是报这个错!!!
此处省略n分钟。。。


最终发现,是因为目录的权限问题导致,因此解决该问题的入口不能因为此报错而蒙蔽了:
怎么发现原因的?


该报错的上层显示/xxx/xxx/xxx/index.html提示了Permission denied,但事实上index.html的权限已经给够了。
那自然而然就得往上推了,果然给index.html的上级目录加权限即可:

chmod 755  /xxx/xxx/xxx

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
根据提供的引用内容中的配置信息,出现"rewrite or internal redirection cycle while internally redirecting to "/index.html""的错误是由于Nginx配置文件中的重定向或循环重定向导致的。 在引用中的配置中,可以看到在location / {}部分的try_files指令中,重定向到了/oeos/index.html,而在引用中的配置和引用中的配置中,又出现了类似的问题,都是在try_files指令中的重定向导致的。 这个错误的原因是,Nginx在查找文件时,如果遇到重定向的情况,会再次按照配置文件中的规则进行重定向,如果出现了循环重定向的情况,就会报错。 解决这个问题的方法是检查配置文件中的重定向规则,确保没有循环重定向的情况发生。可以尝试修改配置文件中的try_files指令,或者检查其他可能引起重定向的地方,例如rewrite指令等。 总结起来,"rewrite or internal redirection cycle while internally redirecting to "/index.html""错误是由Nginx配置文件中的重定向或循环重定向引起的,需要检查配置文件中的重定向规则并进行相应的修改。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [解决nginx 报错提示:rewrite or internal redirection cycle while internally redirecting to “/](https://blog.csdn.net/qq_32406257/article/details/121658449)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* [500 rewrite or internal redirection cycle while internally redirecting to “index.html](https://blog.csdn.net/m0_50913327/article/details/127973434)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ProblemTerminator

您的鼓励将是作者最大的动力哦!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值