小编Jag*_*esh的帖子

在haproxy配置文件中将错误视为未知关键字ssl

这是我的haproxy.cfg文件

global
    daemon
    maxconn 256

defaults
    mode tcp
    timeout connect 5000ms
    timeout client 50000ms
    timeout server 50000ms


frontend ft_ssltests
        mode tcp
        bind *:443 ssl crt /etc/haproxy/sslkeys/host.crt ca-file /etc/haproxy/sslkeys/host.pem
        default_backend webmail


backend webmail
        balance roundrobin
        server server1 10.198.2.76:50000 maxconn 32 check
        server server2 10.198.2.76:60000 maxconn 32 check
Run Code Online (Sandbox Code Playgroud)

重新启动上面的配置文件后,我收到错误,如下所示

service haproxy restart
[ALERT] 023/230240 (4375) : parsing [/etc/haproxy/haproxy.cfg:14] : 'bind *:443' unknown keyword 'ssl'. Registered keywords :
    [ TCP] defer-accept
    [ TCP] interface <arg>
    [ TCP] mss <arg>
    [ TCP] transparent
    [ …
Run Code Online (Sandbox Code Playgroud)

ssl haproxy

3
推荐指数
1
解决办法
8361
查看次数

标签 统计

haproxy ×1

ssl ×1