【发布时间】:2018-09-23 18:55:21
【问题描述】:
Linux 世界的新手。
我已经设置了两台 apache 网络服务器,一台 haproxy 和一台 testpc。 我能够使用端口 80 上的 index.html 内容来卷曲 Web 服务器。 但是当我尝试在任何端口或端口 80 上卷曲 haproxy 时,我会卷曲:
(7) 连接到 35.229.60.183:80 失败;连接被拒绝
所有服务器的防火墙都关闭了,重启了haproxy。
haproxy 配置文件:
defaults
mode http
log global
option httplog
option dontlognull
option http-server-close
option forwardfor except 127.0.0.0/8
option redispatch
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout http-keep-alive 10s
timeout check 100s
maxconn 3000
frontend myserver
bind *:80
default_backend mybackendserver
mybackendserver
balance roundrobin
mode http
server webserver 35.185.18.206:80 check
server webserver1 35.231.241.247:80 check
当我尝试在我的测试机器中卷曲它们时,我正在卷曲:
(7) 连接到 35.229.60.183:80 失败;连接被拒绝
35.229.60.183是我的haproxy服务器的ip。
【问题讨论】: