0

Now that Nginx 1.25.1 support quic/http3 on the run, I try to enable it by following either their doc or few examples over the internet, but so far I couldn't get anything to work: it's always served over http1.1.

(I have no issue enabling http2, just for the record).

Here's my config file for a test vhost:

server {
    listen 443 quic;
    listen 443 ssl;
    server_name www.mywebsite.com;

    http3 on;

    location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|txt|srt|swf|woff|woff2)$ {
        root /var/www/landings/mywebsite/site/;
        add_header Access-Control-Allow-Origin *;
        add_header Alt-Svc 'h3=":443"; ma=86400';
        expires 30d;
    }

    location / {
        proxy_pass http://127.0.0.1:8005/;
        root /var/www/landings/mywebsite/site/;
        include /etc/nginx/conf.d/headers.conf;
        add_header Access-Control-Allow-Origin *;
        add_header Alt-Svc 'h3=":443"; ma=86400';
    }

    ssl_certificate /etc/letsencrypt/live/mywebsite.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/mywebsite.com/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}

I tried a few various steps, like with or without the http3 directive, with add_header QUIC-Status $http3;, and stuff that would regularly pop up in tutorials pages, but so far nothing did the trick.

TLSv1.3 is enabled.

The logs show nothing specific, and nginx configuration check is all clear. Nginx version is 1.25.1 on debian bullseye.

If anyone has an idea of what I could have missed… Thanks!

EmmanuelBeziat
  • 664
  • 8
  • 23

0 Answers0