http2 enable or disable per virtual host
    Valentin V. Bartenev 
    vbart at nginx.com
       
    Tue Feb 16 13:19:29 UTC 2016
    
    
  
On Tuesday 16 February 2016 01:16:09 matrixmatrix wrote:
> Hi the ngx_http_v2_module could not switch enable or disable per virtual
> host.
> 
Yes, that's expected behavior.
>  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;
>                 }
> 
You need a separate IP in this case.
  wbr, Valentin V. Bartenev
    
    
More information about the nginx
mailing list