Skip to content

Commit

Permalink
Update 1_SNI_nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
lxhao61 authored Sep 26, 2022
1 parent 9f6cd51 commit 71b1700
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nginx(other configuration)/1_SNI_nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ events {
worker_connections 1024;
}

stream {
#以下为SNI分流配置:(示例仅配置了两个域名的SNI分流;如需要多个域名,增加对应参数即可。)
stream { #以下为SNI分流配置:(示例仅配置了两个域名的SNI分流;如需要多个域名,增加对应参数即可。)
map $ssl_preread_server_name $backend_name {
zv.xx.yy vless; #zv.xx.yy修改为自己的分流域名
zh.xx.yy http2; #zh.xx.yy修改为自己的分流域名
Expand All @@ -28,8 +27,8 @@ stream {
ssl_preread on;
proxy_pass $backend_name;
proxy_protocol on; #开启PROXY protocol发送(可选)。此参数是针对此监听端口开启(全局模式,即所有转发端口或进程开启。),故若有一个接收端不支持PROXY protocol就不能启用!
} #SNI分流配置到此结束
}
}
} #SNI分流配置到此结束

#在如下http中添加对应网站的应用配置参数(可配置多个网站,必须与上对应。)
http {
Expand Down

0 comments on commit 71b1700

Please sign in to comment.