map $ssl_preread_server_name $name {
xxxx.com tcpstream;
default https_default_backend;
}
upstream tcpstream{
server 127.0.0.1:8082;
}
upstream https_default_backend {
server 127.0.0.1:8082;
}
server {
listen 8080;
proxy_connect_timeout 1000s;
proxy_timeout 1000s;
# 使用域名,或者使用ip:proxy_pass tcpstream
proxy_pass $name;
ssl_preread on;
}
nginx tcp
猜你喜欢
转载自blog.csdn.net/sunyanchun/article/details/129928413
今日推荐
周排行