Welcome! Log In Create A New Profile

Advanced

having nginx listen the same port more than once

Posted by Anonymous User 
Vladimir Homutov
February 14, 2017 04:06AM
On Tue, Feb 14, 2017 at 04:09:10PM +0800, he.hailong5@zte.com.cn wrote:
> now I understand the duplicate listen ports configured in the http
> block can be used to implement virtual hosts.
>
>
> but what's the purpose to allow this in the stream block? in my
> practise (with 1.9.15.1), nginx will randomly select a backend to
> serve the tcp/udp request which seems useless.

yes, in stream it does not make sense and was not intented to work.
>
>
> b.t.w, I also tried with 1.11.x today, looks like configuring
> duplicate listen ports in stream block is forbidden.

correct, this was fixed by this commit: http://hg.nginx.org/nginx/rev/68854ce64ec7
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

having nginx listen the same port more than once

Anonymous User February 13, 2017 01:56AM

RE: having nginx listen the same port more than once

Reinis Rozitis February 13, 2017 02:14AM

Re: having nginx listen the same port more than once

Igor A. Ippolitov February 13, 2017 06:44AM

Re: having nginx listen the same port more than o nce

Anonymous User February 14, 2017 03:18AM

答复: Re: having nginx listen the same port more than o nce

Anonymous User February 14, 2017 03:12AM

Vladimir Homutov February 14, 2017 04:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 192
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