HAProxy棒表

我有一个问题,我需要使用相同的RTMP TCP连接来访问它所连接的同一台服务器,如果它是http或https。 以下与http:

frontend http mode http bind :80 default_backend web_servers frontend rtmp mode tcp bind :1935 default_backend rtmp backend web_servers mode http option forwardfor balance roundrobin stick store-request src stick-table type ip size 200k expire 2m server web1 10.0.0.2:8080 check server web2 10.0.0.3:8080 check backend rtmp mode tcp stick match src table web_servers server web1 10.0.0.2:1935 server web2 10.0.0.3:1935 

我的问题是,如果我介绍https连接,我将如何区分使用它连接到相同的后端服务器,如果它是http或https。 我试图看看我是否可以使用2“stick match src table”条目,但是这不起作用。 例如,我尝试了以下内容,希望您能够了解我正在努力完成的任务。

 frontend http mode http bind :80 default_backend web_servers frontend https bind :8081 default_backend https frontend rtmp mode tcp bind :1935 default_backend rtmp backend web_servers mode http option forwardfor balance roundrobin stick store-request src stick-table type ip size 200k expire 2m server web1 10.0.0.2:8080 check server web2 10.0.0.3:8080 check backend https balance roundrobin stick store-request src stick-table type ip size 200k expire 30m option forwardfor reqadd X-Forwarded-Proto:\ https server web1 10.0.0.2:8080 check server web2 10.0.0.3:8080 check backend rtmp mode tcp stick match src table web_servers stick match src table https <-- I added this server web1 10.0.0.2:1935 server web2 10.0.0.3:1935 

以上不起作用,当我尝试使用https。 如果我评论一个,另一个会工作,所以有冲突。 我可能不得不添加一个条件,我已经尝试了一些,但没有任何运气。 任何指针? 提前致谢。