Challenge - 5 Problems
HTTP/2 Nginx Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
Check if HTTP/2 is enabled on Nginx
You run the command
curl -I --http2 https://example.com on a server with Nginx configured. What output line confirms HTTP/2 is enabled?Attempts:
2 left
💡 Hint
Look for the HTTP version in the response headers.
✗ Incorrect
The response line starting with 'HTTP/2' confirms the server responded using HTTP/2 protocol.
❓ Configuration
intermediate1:30remaining
Enable HTTP/2 in Nginx server block
Which Nginx server block directive correctly enables HTTP/2 for HTTPS?
Attempts:
2 left
💡 Hint
HTTP/2 requires SSL and the correct listen directive.
✗ Incorrect
The directive 'listen 443 ssl http2;' enables SSL and HTTP/2 on port 443.
❓ Troubleshoot
advanced2:00remaining
Why is HTTP/2 not working despite configuration?
You configured Nginx with
listen 443 ssl http2; but HTTP/2 is not working. Which is the most likely cause?Attempts:
2 left
💡 Hint
HTTP/2 requires a secure connection.
✗ Incorrect
HTTP/2 over Nginx requires SSL with valid certificates; missing them disables HTTP/2.
✅ Best Practice
advanced2:00remaining
Recommended TLS versions for HTTP/2 in Nginx
Which TLS versions should you enable in Nginx to support HTTP/2 securely?
Attempts:
2 left
💡 Hint
Older TLS versions are insecure and not recommended.
✗ Incorrect
TLSv1.2 and TLSv1.3 are secure and recommended for HTTP/2 support.
🔀 Workflow
expert2:30remaining
Order steps to enable HTTP/2 on Nginx with SSL
Put these steps in the correct order to enable HTTP/2 on an Nginx server with SSL:
Attempts:
2 left
💡 Hint
Think about getting certificates before configuring paths.
✗ Incorrect
First get certificates, then configure paths, enable HTTP/2 in listen, then reload Nginx.