]> git.kaiwu.me - nginx.git/commitdiff
*) issue warning instead of failure: this is too common case
authorIgor Sysoev <igor@sysoev.ru>
Fri, 18 Sep 2009 09:10:16 +0000 (09:10 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 18 Sep 2009 09:10:16 +0000 (09:10 +0000)
*) use ngx_log_error(), since OpenSSL does not set an error on the failure

src/http/modules/ngx_http_ssl_module.c

index 42854b4793d72ba6b0b0170cb3f6710fa99a0c9d..7729b760e4cf0441a4017286382bcc2a0464e521 100644 (file)
@@ -406,9 +406,10 @@ ngx_http_ssl_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
                                                ngx_http_ssl_servername)
         == 0)
     {
-        ngx_ssl_error(NGX_LOG_EMERG, cf->log, 0,
-                      "SSL_CTX_set_tlsext_servername_callback() failed");
-        return NGX_CONF_ERROR;
+        ngx_log_error(NGX_LOG_WARN, cf->log, 0,
+            "nginx was build with SNI support, however, now it is linked "
+            "dynamically to an OpenSSL library which has no tlsext support, "
+            "therefore SNI is not available");
     }
 
 #endif