Welcome! Log In Create A New Profile

Advanced

http2 enable or disable per virtual host

February 16, 2016 01:16AM
Hi the ngx_http_v2_module could not switch enable or disable per virtual host.

The following code, http.domainname.com is enabled http2.

I would like to enable only the http2 of http2.domainname.com.

server {
listen 443 ssl http2;
server_name http2.domainname.com;
ssl_prefer_server_ciphers on;
ssl_ciphers AESGCM:HIGH:!aNULL:!MD5;
ssl on;
ssl_certificate cert.pem;
ssl_certificate_key key.pem;
}

server {
listen 443 ssl;
server_name http.domainname.com;
ssl_prefer_server_ciphers on;
ssl_ciphers AESGCM:HIGH:!aNULL:!MD5;
ssl on;
ssl_certificate cert.pem;
ssl_certificate_key key.pem;
}
Subject Author Posted

http2 enable or disable per virtual host

matrixmatrix February 16, 2016 01:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 59
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready