#Nginx
共 198 篇文章
解决 Nginx 报错 (111: Connection refused) while connecting to upstream 的排查指南
排查与解决 Nginx 转发上游提示 111: Connection refused 导致 502 Bad Gateway 的完整方案。
解决 Nginx 报错 24: Too many open files 连接句柄耗尽修复
排查 Nginx 在高并发下报 24: Too many open files 并拒绝请求,分析 worker_rlimit_nofile 与 systemd LimitNOFILE 调优。
Nginx 403 Forbidden 目录索引被拒排查与权限调优
深入排查 Nginx 访问静态资源目录时抛出 403 Forbidden (directory index of ... is forbidden) 的底层机理,提供 index 默认主页配置、文件系统权限与 autoindex 调优实战。
解决 Nginx 报错 rewrite internal redirection cycle 循环重定向
分析 Nginx 配置 Vue/React 单页应用路由时触发 500 rewrite or internal redirection cycle 的 try_files 陷阱与修复指南。
解决 Nginx 启用双向认证报错 400 Bad Request No required SSL certificate was sent
分析 Nginx 开启 mTLS 报 400 No required SSL certificate 诱因,详解客户端证书打包 PKCS12 与 CA 根信任链配置。
解决 Nginx Ingress 报错 504 Gateway Time-out 异常指南
分析 Nginx Ingress Controller 返回 504 Gateway Time-out 的根因,提供 proxy-read-timeout 调优与上游后端性能瓶颈排查。
解决 TLS 报错 SSL_ERROR_UNRECOGNIZED_NAME_ALERT SNI 默认主机修复
排查 HTTPS 访问提示 SSL_ERROR_UNRECOGNIZED_NAME_ALERT 错误,分析 Nginx/Apache 虚拟主机缺少 default_server 与 SNI 扩展支持。
解决 Nginx 报错 413 Request Entity Too Large 请求体超限
分析客户端上传文件或发起大 payload 请求时 Nginx 拦截报 413 错误的原因,提供 client_max_body_size 配置方案。
Nginx 报 504 Gateway Time-out: upstream timed out (110: Connection timed out) 排查
排查 Nginx 反向代理触发 504 Gateway Time-out 报 upstream 110 连接超时的后端假死与超时参数对策。
解决 Nginx 代理 gRPC 报错 grpc-status: 14 (UNAVAILABLE)
分析 Nginx 反向代理 gRPC 报 14 UNAVAILABLE 诱因,详解 grpc_pass 指令与 HTTP/2 全链路配置最佳实践。
解决 Nginx 报错 504 Gateway Time-out 的排查指南
排查与解决 Nginx 等待后端应用响应超时导致客户端显示 504 Gateway Time-out 的完整方案。
Nginx 返回 502 Bad Gateway 且提示 Connection refused:排查后端服务假死与端口
生产反向代理 Nginx 突然向所有访问用户抛出 502 Bad Gateway 错误白屏,错误日志提示连接上游后端遭遇 Connection refused。全面排查后端微服务进程崩溃、端口未监听、SELinux 拦截以及上游域名解析失效的根治手段。
Nginx upstream keepalive 连接池耗尽导致并发后端重连雪崩排障
排查 Nginx 作为反向代理在承载微服务高频调用时,因 keepalive 配置缺失或连接池过小引发频繁主动建立 TCP 短连接与端口耗尽的故障应对。
解决浏览器 CORS 跨域报错 No 'Access-Control-Allow-Origin' header is present 修复
排查前端 Ajax/Fetch 请求跨域被浏览器拦截提示 No Access-Control-Allow-Origin header is present 错误,掌握后端与 Nginx 响应头配置规范。
解决 Nginx 状态码 499 (Client Closed Request) 的排查指南
排查与解决 Nginx 访问日志高频出现非标准 499 状态码的完整方案与超时调优指南。
解决 Nginx 报错 upstream sent too big header while reading response header 调优
排查 Nginx 反向代理提示 502 Bad Gateway 且日志记录 upstream sent too big header,调优 proxy_buffer_size 缓冲区大小。
解决 Nginx 报错 could not build optimal variables_hash 哈希表溢出
分析 Nginx 配置大量自定义变量或 map 映射时报 could not build optimal variables_hash 根因,提供 variables_hash 调优方案。
解决 Nginx 报错 414 Request-URI Too Large 超长请求行异常
分析前端在 GET 请求中拼接超长 URL 参数时 Nginx 拦截报 414 错误的根因,提供 large_client_header_buffers 调优方案。
解决 Nginx 报错 upstream sent too many headers 502 异常
分析 Nginx 反向代理在后端返回过多响应头时报 too many headers 根因,提供 proxy_headers_hash_max_size 调优方案。
解决浏览器访问 HTTPS 报错 SSL_ERROR_RX_RECORD_TOO_LONG
深入分析 Firefox 与 Chrome 访问报错 SSL_ERROR_RX_RECORD_TOO_LONG 诱因,详解 443 端口明文 HTTP 错配修复。


