quic listen on multiple vhost

A
  • 25 Jul '23
Hi,

I am trying to setup nginx with multiple vhost and quic support for all and
using sample config as per
https://www.nginx.com/blog/binary-packages-for-preview-nginx-quic-http3-implementation/

server {
listen    65.109.175.140:443 ssl ;
listen    65.109.175.140:443 quic reuseport;
server_name a.com;
.............
.............................
}
server {
listen    65.109.175.140:443 ssl ;
listen    65.109.175.140:443 quic reuseport;
server_name b.com;
.............
.............................
}

This however is throwing an error

# nginx -t
nginx: [emerg] duplicate listen options for 65.109.175.140:443 in
/etc/nginx/sites-enabled/b.com.conf:105
nginx: configuration file /etc/nginx/nginx.conf test failed

What am I doing wrong?

-- 
*Anoop P Alias*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20230725/a69d4cf5/attachment.htm>
R
  • 25 Jul '23
> # nginx -t
> nginx: [emerg] duplicate listen options for http://65.109.175.140:443 in /etc/nginx/sites-enabled/b.com.conf:105
> nginx: configuration file /etc/nginx/nginx.conf test failed
> 
> What am I doing wrong?

Probably complains about the duplicate 'reuseport' - leave it just only on one listen directive.

rr