回答
收藏
分享
举报
提问:Nginx+haproxy高可用架构报Error:connect() failed (111: Connection refused) while connecting to upstream
提问于2022-05-17 11:02

浏览 3.8k

客户生产环境,架构为Nginx+haproxy,在请求时日志里有connect() failed (111: Connection refused) while connecting to upstream, client: xxxxxxx, server: localhost  信息。
此问题不知是否为网络网关配置导致的,希望有大神帮忙分析一下原因。 

指向的页面是用vue写的。

nginx.conf 中的部分配置如下

location ^~ /busimod/ {
    proxy_pass http://127.0.0.1:8101/;
    proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_redirect off;
}
location ^~ / {
    try_files $uri $uri/ @router;
    index busiPage.html;
}
location @router {
    rewrite ^.*$ /busiPage.html last;
}



已修改于2023-03-17 15:43



写下您的回答
发表回答
全部回答(0)

按点赞数排序

按时间排序

提问者
坚宏
这家伙很懒还未留下介绍~
0
文章
1
问答
0
粉丝
相关问答

这个模块修改了Nginx框架源码,所以你得先打patch,改完框架源码后,再用add-module来configure\make编译

点赞 0
浏览 4.4k

这个指的是什么行业报告?产品?还是行业研究?

点赞 0
浏览 3.6k
点赞 0
浏览 1.8k