nginx rewrite or internal redirection cycle while internally redirecting
problem
nginx新增监听80端口配置
reason
启动后 报错
2022/07/07 08:57:03 [error] 44736#0: *36 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: 10.32.84.36, server: localhost, request: "GET /test HTTP/1.1", host: "10.32.84.36"
如果把 80 端口换成 其他端口比如7080,服务正常
solution
原因:conf.d/目录下有其他监听80端口的配置干扰导致的
解决:按需移除其他不需要的配置,加载自己需要的配置即可