﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1951	support stream tls termination protocol detection	xqdoo00o@…		"In haproxy I could use {{{if HTTP}}} after tls termination , but in nginx after stream tls termination, there is no Embedded Variables to show if it's http protocol.

haproxy:

{{{
defaults
    mode tcp
frontend tls-in
    bind *:443 tfo ssl crt /etc/ssl/private/aa.aa.pem
    tcp-request content accept if HTTP
    // how nginx could route request just like below ??
    use_backend httpback if HTTP
    default_backend customback
}}}
nginx:
{{{
stream {
        upstream customback{
                server 127.0.0.1:8888;
        }
        upstream httpback{
                server 127.0.0.1:9999;
        }
        server {
                listen 443 ssl;
                //how to figure if it's http req.
                proxy_pass httpback;
                ssl_certificate /etc/cert/fullchain.cer;
                ssl_certificate_key /etc/cert/aa.aa.key;
        }
}
}}}

"	enhancement	closed	major		nginx-module	1.17.x	wontfix				nginx/1.16.1
