zhuhui
zhuhui
i find "It should be noted that using an index file causes an internal redirect" in nginx doc (https://nginx.org/en/docs/http/ngx_http_index_module.html. ) so i think this maybe right, because have a internal...
> > [我在 nginx 文档( https://nginx.org/en/docs/http/ngx_http_index_module.html](https://nginx.org/en/docs/http/ngx_http_index_module.html))中发现“应该注意的是,使用索引文件会导致内部重定向”,所以我认为这可能是对的,因为有一个内部重定向 > > 感谢您的回答,所以我尝试下面的 nginx 配置: ########### nginx.conf ########### location = / { default_type text/html; # return 200 '感谢访问=/'; 根/opt/nginx/nginx/html; # 索引index.htmlindex.htm; try_files $uri $uri...
> 我们以前遇到过类似的问题。 > > 问题的根源在于 APISIX 使用 HTTP/1.1 代理对上游服务器的请求,并且 keepalive_timeout 设置为 60 秒: > > ``` > proxy_http_version 1.1; > keepalive_timeout 60s; > ``` > > 如果上游服务器配置了keepalive但是,例如Python中的Gunicorn(其默认keepalive_timeout为2秒),则可能会导致问题。在APISIX 上游设置中,上游服务器会在2秒后关闭连接。,APISIX并不知道这一点,当它尝试关闭上面的连接用于下一个请求时,会导致 502 错误。...