duplicate ports across servers in nginx.conf

Yuval Abadi y.abadi at f5.com
Tue May 30 06:50:19 UTC 2023


When I have 2 servers in nginx.conf  with same  listen port   if the server have name, nginx issue warning  ignore …  but nit failed to load.
What happens is only the first server in conf binds the socket.
And worse, If no server names I did not get a warning.

Only if the keyword “default server” used nginx enforces one server to use the port.


How come it warning and error?

It misleading option.


Yuval Abadi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20230530/f33bad5a/attachment.htm>

More information about the nginx mailing list