http2 enable or disable per virtual host
matrixmatrix
nginx-forum at forum.nginx.org
Tue Feb 16 06:16:09 UTC 2016
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;
}
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,264549,264549#msg-264549
More information about the nginx
mailing list