Welcome! Log In Create A New Profile

Advanced

Re: [quic] can't define more than one server

Roman Arutyunyan
February 20, 2023 07:20AM
Hi Jonas,

> On 15 Feb 2023, at 21:50, Jonas Hünig via nginx-devel <nginx-devel@nginx.org> wrote:
>
> Hi,
>
> I installed the new prebuild nginx package with http/3 support. This works very well for one server block, but when I add the listen directives to a second server block I get this error on configtest:
>
> nginx: [emerg] duplicate listen options for X.X.X.X:443 in /etc/nginx/sites-available/quic2.c-X.maxcluster.net/userdefined.conf.init:1
> nginx: configuration file /etc/nginx/nginx.conf test failed
>
>
> anyone has an idea about this?
>

You probably duplicated all listen parameters in the second listen directive.
There are listen parameters which are not allowed to be duplicated,
particularly socket options like "bind", "reuseport" etc.
Normally you specify them in the first listen, and then reference them by address/port.

Also, please notice that nginx-devel@nginx.org <mailto:nginx-devel@nginx.org> is a mailing list for development questions.
You should send user questions to nginx@nginx.org <mailto:nginx@nginx.org> instead.

----
Roman Arutyunyan
arut@nginx.com




_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Re: [quic] can't define more than one server

Roman Arutyunyan February 20, 2023 07:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 193
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready