Welcome! Log In Create A New Profile

Advanced

Re: Virtual hosts sharing same port

April 16, 2018 11:06AM
Does this imply that that different behavior *could* be achieved by first defining virtual IP addresses (additional private IPs defined at the OS) which were bound to same physical NIC, and then defining virtual hosts that reference the different VIPs, in a similar fashion to how someone might configure a hardware load balancer?



Sent from my iPhone

> On Apr 16, 2018, at 9:32 AM, Maxim Dounin <mdounin@mdounin.ru> wrote:
>
> Hello!
>
>> On Mon, Apr 16, 2018 at 07:26:11AM +0000, Frank Liu wrote:
>>
>> Can I use different listen parameters for virtual hosts using the same
>> port? Eg, one vh has “listen 443 ssl;” and the other one has “listen 443
>> ssl h2;”
>
> No. Options like "ssl" and "h2" can be repeated multiple times to
> make configuring listening sockets more clear. But whenever you
> set it or not in a given server{} block, the listening socket in
> question will have the option set as long as it is set in at least
> one "listen" directive.
>
> --
> Maxim Dounin
> http://mdounin.ru/
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Virtual hosts sharing same port

Frank Liu April 16, 2018 03:28AM

Re: Virtual hosts sharing same port

A. Schulze April 16, 2018 05:22AM

Re: Virtual hosts sharing same port

Richard Demeny April 16, 2018 05:24AM

Re: Virtual hosts sharing same port

Maxim Dounin April 16, 2018 09:34AM

Re: Virtual hosts sharing same port

pbooth April 16, 2018 11:06AM

Re: Virtual hosts sharing same port

Frank Liu April 16, 2018 11:16AM

Re: Virtual hosts sharing same port

Maxim Dounin April 16, 2018 12:50PM

Re: Virtual hosts sharing same port

Frank Liu April 16, 2018 05:18PM

Re: Virtual hosts sharing same port

Maxim Dounin April 16, 2018 12:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 119
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready