NGINX SSL configuration

henry_nginx_profile nginx-forum at
Thu Aug 25 05:37:44 UTC 2016

hello,i am come from china. i use NGINX in a short period of time. i have
some confuse about  NGINX's ssl_* directive.
i have two vhost conf file, the above is my configuration:


server {
     listen 443 ssl;
     ssl_protocols  TLSv1.2;

b.conf {
     listen 443 ssl;
     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
my problem:
i test these two web site use curl tools, "" is  using TLSv1.2
protocol, this is ok,  but when i testing  "" that only support
TLS1.2 too,  it seems like b.conf 's ssl_protocols directive is not
effective, only a.conf's ssl_protools directive effective.

my question:
1.Dose ssl_protocols directive is only be parser once by NGINX? something
like NGINX read config file, that find out a.conf's ssl_protocols directive
and record it, the below ssl_protocol directive will be pass? 
2.if question 1 is yes,   how can i  write difference  ssl_*  directive in
multi vhost?

Posted at Nginx Forum:,269177,269177#msg-269177

More information about the nginx mailing list