HTTP/3 with multiple server blocks

Sergey Kandaurov pluknet at nginx.com
Mon Nov 2 13:39:39 UTC 2020


> On 30 Oct 2020, at 22:21, Jonny Barnes <jonnybarnes at gmail.com> wrote:
> 
> Can we do this?
> 
> First issue is if I add the line `listen 443 http3 resueport` to more than one server {} block the nginx conf test gives the following error:
> 
> > nginx: [emerg] duplicate listen options for 0.0.0.0:443 in /usr/local/nginx/conf/sites-enabled/legolas:2
> > nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed

That's expected behaviour, see for detailed explanation:
https://trac.nginx.org/nginx/ticket/1912

> 
> It seemingly works if i only have it for one of my server blocks. But I can‘t get my firefox browser to connect with HTTP/3. It does connect to quic.nginx.org over HTTP/3.

You may want to hint Firefox about QUIC protocol using Alt-Svc.

-- 
Sergey Kandaurov



More information about the nginx-devel mailing list