deploy: http2 via the listen directive, for nginx 1.24

The server runs nginx 1.24.0; the standalone `http2 on;` directive only
arrived in 1.25.1, so `nginx -t` rejected the vhost as an unknown directive.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
timka123andClaude Opus 5 committed 2026-10-19 15:00:13 +03:00
1 parent f25ccdec38
commit eb49df58d7
1 file changed
+4 -3
+4 -3
View File
@@ -29,9 +29,10 @@ server {
} }
server { server {
listen 443 ssl; # `listen ... http2` rather than the `http2 on;` directive: this host runs
listen [::]:443 ssl; # nginx 1.24, and `http2 on` only arrived in 1.25.1.
http2 on; listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name kadence.timka.su; server_name kadence.timka.su;
ssl_certificate /etc/letsencrypt/live/kadence.timka.su/fullchain.pem; ssl_certificate /etc/letsencrypt/live/kadence.timka.su/fullchain.pem;