Complete the code to enable HTTP/2 in the server block.
listen 443 ssl [1];
Adding http2 to the listen directive enables HTTP/2 support on the SSL port.
Complete the code to specify the SSL certificate file path.
ssl_certificate [1];The ssl_certificate directive requires the path to the certificate file, usually ending with .crt.
Fix the error in the listen directive to properly enable HTTP/2.
listen 443 ssl [1];
The correct syntax to enable HTTP/2 in nginx is http2 without any slashes or dashes.
Fill both blanks to complete the SSL configuration for HTTP/2 support.
listen 443 ssl [1]; ssl_certificate [2];
The listen directive needs http2 to enable HTTP/2. The ssl_certificate directive needs the certificate file path.
Fill all three blanks to complete the secure server block with HTTP/2 enabled.
server {
listen 443 ssl [1];
ssl_certificate [2];
ssl_certificate_key [3];
}To enable HTTP/2, add http2 to the listen directive. The ssl_certificate needs the certificate file, and ssl_certificate_key needs the private key file.