Update default config to use new format for enabling HTTP/2 in nginx v1.25.1+

This commit is contained in:
Alex Thomassen 2024-05-01 22:52:21 +02:00
parent 230db7d600
commit 2700ce4ad1
Signed by: Alex
GPG Key ID: 10BD786B5F6FF5DE
1 changed files with 3 additions and 2 deletions

View File

@ -9,8 +9,9 @@ server {
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
http2 on;
listen 443 ssl;
listen [::]:443 ssl;
server_name _;
root /var/www/html;