首页 > 解决方案 > nginx ssl_preload ssh,http,https 设置

问题描述

我看到了结合 HTTPS/SSH 选择基于 SSL 协议版本的上游的示例:

map $ssl_preread_protocol $upstream {
    default   ssh.example.com:22;
    "TLSv1.2" new.example.com:443;
}

# ssh and https on the same port
server {
    listen      192.168.0.1:443;
    proxy_pass  $upstream;
    ssl_preread on;
}

但我不知道如何在同一个端口上结合 SSH、HTTPS(TLS) 和 HTTP?这甚至可能吗?

谢谢

标签: nginxproxynginx-config

解决方案


推荐阅读