nginx - NGINX:配置设置 120 秒超时,但在 60 秒后仍然报告(110:连接超时)
问题描述
我proxy_read_timeout
在位置配置中设置。
location / {
proxy_connect_timeout 120s;
proxy_send_timeout 120s;
proxy_read_timeout 120s;
include proxy_params;
proxy_pass http://127.0.0.1:8081/;
}
proxy_params 是
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
Nginx conf中的http是
client_header_timeout 300;
client_body_timeout 300;
keepalive_timeout 300;
但是当我请求时,nginx在60s后报告超时。
upstream timed out (110: Connection timed out) while reading response header from upstream
我不明白哪个配置错误或丢失。我尝试阅读 nginx 文档,但找不到答案。
解决方案
推荐阅读
- javascript - 使用jquery克隆功能只有一个数据保存到数据库Django
- java - Java/Android - 检查是否有人连接到本地热点
- python - 如何使用python,pandas修改(字符串数据列表到单个字符串)数据系列的每个元素?
- javascript - 未捕获的 ReferenceError:在 HTMLDivElement.onclick 中未定义 toggleNav
- android - 自动备份 Hive 数据库颤振
- python - 将 h:mm:ss 更改为 hh:mm:ss
- ios - 使用登录苹果将 iOS 应用程序转移到另一个帐户
- java - 如何在java中将单个地址行转换为三个地址行,例如地址行1,地址行2,地址行3
- javascript - Laravel API ajax 请求未通过身份验证
- python - 逻辑回归结果没有截距值?