Haproxy SD终止状态

时间:2018-10-30 15:06:22

标签: ssl haproxy

我已配置了Haproxy服务器。碰巧很多请求正在Chrome中返回ERR_EMPTY_RESPONSE。

enter image description here

检查日志时,终止状态为SD,状态码为0:

[10月30日12:47:19本地主机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本地主机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”

Tin是仅在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

[...]

0 个答案:

没有答案
相关问题