Nginx + SNI = 525 NEED HELP

How can I turn on SNI for nginx?
I think that my nginx server supports SNI, because nginx -V sent me such feedback

nginx version: nginx/1.18.0
built by gcc 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
built with OpenSSL 1.1.1f  31 Mar 2020
TLS SNI support enabled

Here is part of my setting of nginx.conf, but b.org is not avaliable, and present 525 SSL hand shake failed. Another virtual server is ok.

server {
        listen 443 ssl;
        server_name  A.com;
        ssl_certificate      /home/web/cert/A.com.pem;
        ssl_certificate_key  /home/web/cert/A.com.key;
        location / {
                proxy_pass http://127.0.0.1:5660;
                }
}
server {
        listen 443 ssl;
        server_name  B.org;
        ssl_certificate      /home/web/cert/B.org.pem;
        ssl_certificate_key  /home/web/cert/B.org.key;
        location / {
                proxy_pass http://127.0.0.1:5661;
                }
}

This post was flagged by the community and is temporarily hidden.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.