August 2017
Intermediate to advanced
278 pages
8h 53m
English
Based on our previous example, we only need to make one key change. Instead of just specifying ssl as the listening protocol, we add http2:
server {
listen 443 ssl http2;
server_name http2.nginxcookbook.com;
ssl_certificate /etc/ssl/public.pem;
ssl_certificate_key /etc/ssl/private.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
access_log /var/log/nginx/ssl-access.log combined;
location /favicon.ico { access_log off; log_not_found off; }
root /var/www;
}
Read now
Unlock full access