记录一次 nginx 502错误解决方法思路 🎨
博客在某一次更新之后,突然部分页面在访问时,跳出了Nginx 502的错误页面,当时第一个想法时查看博客后台服务器的错误日志,结果并没有抛出相关的异常。之后去nginx的日志里(默认记录日志在/var/log/nginx/)查找错误信息,果然找到错误信息的位置: 2021/08/01 00:54:18 [error] 4539#4539: *406960 upstream sent too big header while reading response header from upstream, client: 112.19.236.168, server: www.lonuslan.com, request: "GET /articles/2021/08/01/1627749166108.html HTTP/1.1", upstream: "http://106.52.77.158:9292/articles/2021/08/01/1627749166108.html", host: "www.lonuslan.com", referrer: "https://www.lonus....