Welcome! Log In Create A New Profile

Advanced

SSL behaviour with multiple server blocks for same port

Pankaj Mehta
January 23, 2014 06:18AM
Hi,

I am struggling to get any documented reference for my problem in nginx
docs. Hope someone can help before I delve into nginx code:

I want to have multiple server blocks for the https port 443, they will
serve different hostnames. Each block will have it's own ssl configuration.
For example:

server {
listen 443 ssl
server_name blah.xyz.com

ssl protocols TLSv1
ssl_ciphers AES256-SHA:RC4-SHA;
ssl_certificate /test/site1.cer;
ssl_certificate_key /test/site1.key;
...
}

server {
listen 443 ssl
server_name blah.xyz.com

ssl protocols TLSv1
ssl_ciphers AES256-SHA:RC4-SHA;
ssl_certificate /test/site2.cer;
ssl_certificate_key /test/site2.key;
...
}

These blocks have different ssl certificates. I understand that if I enable
SNI in nginx and the client supports it, then we have a predictable
behaviour where nginx will use the correct ssl parameters from the server
block corresponding to that hostname. But I have no idea which ssl config
will be picked up when the client does not support SNI. Is it the one that
comes first? Also is the behaviour when SNI is disabled in nginx similar to
when SNI is enabled in nginx but client doesn't support it?

Is there a way in nginx to dump the active configs for a port?

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

SSL behaviour with multiple server blocks for same port

Pankaj Mehta January 23, 2014 06:18AM

Re: SSL behaviour with multiple server blocks for same port

Maxim Dounin January 23, 2014 06:50AM

Re: SSL behaviour with multiple server blocks for same port

Alex January 23, 2014 09:56AM

Re: SSL behaviour with multiple server blocks for same port

Valentin V. Bartenev February 04, 2014 09:33AM

Re: SSL behaviour with multiple server blocks for same port

Alex February 04, 2014 09:33AM

Re: SSL behaviour with multiple server blocks for same port

Pankaj Mehta January 24, 2014 06:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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