Http2 not starting up

khav nginx-forum at
Tue Sep 29 05:16:05 UTC 2015

HTTP2 isn't working for me .I still use HTTP/1.1 is reponse headers but
nginx don't show any error.I also restarted nginx with no change 

server {
     listen 443 http2 ;
	 ssl on;
	 ssl_certificate    /etc/ssl/; #(or .pem)
     ssl_certificate_key    /etc/ssl/;
     return 301 $scheme://$request_uri;
server {
    listen       443 http2  default_server reuseport deferred; #Change to
443 when SSL is on
	ssl on;
	ssl_certificate    /etc/ssl/; #(or .pem) 
    ssl_certificate_key    /etc/ssl/;
	ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
	#keepalive_timeout    70;
    ssl_prefer_server_ciphers on;
	ssl_buffer_size 8k;
    ssl_session_cache shared:SSL:20m;
	ssl_dhparam /etc/ssl/dhparam.pem;
    ssl_session_timeout 45m;
	ssl_stapling on;
    ssl_stapling_verify on;
	ssl_trusted_certificate  /etc/ssl/trustchain.crt;
	resolver valid=300s;
	resolver_timeout 5s;
	add_header Strict-Transport-Security "max-age=31536000;
      // rest of config goes below

Posted at Nginx Forum:,261910,261910#msg-261910

More information about the nginx mailing list