我配置了Haproxy服务器 . 碰巧许多请求在Chrome中返回ERR_EMPTY_RESPONSE .
检查日志时,终止状态为SD,状态代码为0:
[10月30日12:47:19 localhost haproxy [49718]:150.164.180.68:51474 [30 / Oct / 2018:12:47:19.227] localnodes~webservice / webservice1 0/0/1 / -1 / 1 -1 0 - - SD-- 332/332/0/0/0 0/0“GET / webservice / news / category HTTP / 1.1”10月30日12:47:19 localhost haproxy [49718]:150.164.180.68:51486
[30 / Oct / 2018:12:47:19.242] localnodes~webservice / webservice1 0/0/0 / -1 / 0 -1 0 - - SD-- 337/337/5/5/0 0/0“GET / webservice / gallery HTTP / 1.1“
锡是仅在Crhome中发生的那种错误 . 在Firefox中它可以正常工作 .
global
log 127.0.0.1:514 local0 # traffic logs
log 127.0.0.1:514 local1 notice # event logs
user haproxy
group haproxy
daemon
ssl-default-bind-options no-sslv3
ssl-default-bind-ciphers kEECDH+aRSA+AES:kRSA+AES:+AES256:RC4-SHA:!kEDH:!LOW:!EXP:!MD5:!aNULL:!eNULL
defaults
mode http
log global
option httplog
option http-server-close
option dontlognull
option forwardfor
frontend localnodes
bind *:80
bind *:443 ssl crt /usr/local/etc/cert/new2/cert.br.pem
mode http
reqadd X-Forwarded-Proto:\ https # Adds https header to end of HTTPS request
redirect scheme https if !{ ssl_fc } # redirects http to https if not using ssl already
acl url_webservice path_beg /webservice
use_backend webservice if url_webservice
[...]
backend webservice
mode http
reqrep ^([^\ ]*\ /)webservice[/]?(.*) \1\\2
server webservice1 152.17.20.221:9999
[...]