Welcome! Log In Create A New Profile

Advanced

Re: Multiple server blocks using spdy, reuseport, deferred

Andrew Hutchings
September 19, 2015 06:26AM
Hi,

From the documentation (about those two parameters):

"The listen directive can have several additional parameters specific to
socket-related system calls. These parameters can be specified in any
listen directive, but only once for a given address:port pair."

It will automatically apply to other directives using that address:port
pair.

I hope this helps.

Kind Regards
Andrew

On 18/09/15 19:45, justink101 wrote:
> If we have multiple server blocks binding on https using SPDY, reuseport,
> and deferred nginx fails to start complaining about port already bound:
>
> server {
> listen 443 deferred ssl spdy reuseport;
> server_name app.foo.com;
> ...
> }
>
> server {
> listen 443 deferred ssl spdy reuseport;
> server_name frontend.bar.com;
> ...
> }
>
> What is the behavior then if we change to:
>
> server {
> listen 443 deferred ssl spdy reuseport;
> server_name app.foo.com;
> ...
> }
>
> server {
> listen 443 ssl;
> server_name frontend.bar.com;
> ...
> }
>
> Will both server blocks use SPDY, reuseport, and deferred, or only the
> first?
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261646,261646#msg-261646
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>

--
Andrew Hutchings (LinuxJedi)
Senior Developer Advocate, Nginx Inc.
Discover best practices for building & delivering apps at scale.
nginx.conf 2015: Sept. 22-24, San Francisco. http://nginx.com/nginxconf

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

Multiple server blocks using spdy, reuseport, deferred

justink101 September 18, 2015 02:45PM

Re: Multiple server blocks using spdy, reuseport, deferred

Andrew Hutchings September 19, 2015 06:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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