<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi Jonas,<div><div><br><blockquote type="cite"><div>On 15 Feb 2023, at 21:50, Jonas Hünig via nginx-devel <nginx-devel@nginx.org> wrote:</div><br class="Apple-interchange-newline"><div>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div><p>Hi, <br>
</p><p>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:</p><p><span style="font-family:monospace"><span style="background-color: rgb(255, 255, 255);">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</span><br>
nginx: configuration file /etc/nginx/nginx.conf test failed<br>
<br>
</span></p><p><span style="font-family:monospace">anyone has an idea about
this?</span></p></div></div></blockquote></div><div>You probably duplicated all listen parameters in the second listen directive.</div><div>There are listen parameters which are not allowed to be duplicated,</div><div>particularly socket options like "bind", "reuseport" etc.</div><div>Normally you specify them in the first listen, and then reference them by address/port.</div><div><br></div><div>Also, please notice that <a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a> is a mailing list for development questions.</div><div>You should send user questions to <a href="mailto:nginx@nginx.org">nginx@nginx.org</a> instead.</div><div><br></div><div>
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>----</div><div>Roman Arutyunyan</div><div>arut@nginx.com</div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></body></html>