浏览 695
客户生产环境,架构为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;
}
按点赞数排序
按时间排序
开源版本身不支持 ftp,因为有alg的问题。
可以参考这个插件。
https://github.com/pei-jikui/nginx-alg。