alibaba / tengine

A distribution of Nginx with some advanced features
https://tengine.taobao.org
BSD 2-Clause "Simplified" License
12.74k stars 2.51k forks source link

Tengine/2.3.0 (nginx/1.15.9) 可以在server配置块中控制http2开关 该feature无法生效 #1300

Open xmlybob opened 5 years ago

xmlybob commented 5 years ago

Tengine/2.3.0 (nginx/1.15.9) 可以在server配置块中控制http2开关 该feature无法生效

我有一台nginx 一个ip地址 里面配置了多个域名 ,我想可以2.3.0 可以控制 域名级别的http2开关 但是看起来不太行

当我在其中一个的 server 中配置了 listen 443 http2; 那么这个nginx上的所有域名都会自动协商成http2

我尝试 在 另一个server 中配置 http2 off; 关闭另一个域名的 http2 协商

但是访问不了443 了

How to reproduce it (as minimally and precisely as possible)

  1. 下载tengine 2.3.0 解压安装 使用的是openssl1.0.2f 其他保持默认 2.创建配置文件 ,以及对应的https证书 增加两个域名
  2. 一个域名开启http2 一个不需要开启

Environment:

tengine-2.3.0 OS CentOS release 6.10 (Final) Kernel Linux web-http2 2.6.32-754.el6.x86_64 #1 SMP Tue Jun 19 21:26:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

mrpre commented 5 years ago

1、请贴出最小可使用的配置文件。 2、请根据该配置文件,描述清楚你希望达到的效果。