Nginx支持多域名SSL证书是需要OpenSSL库支持的,CentOS5.X的OpenSSL库本身不支持这种特性,需要重新下载编译,步骤如下
wget https://www.openssl.org/source/old/0.9.x/openssl-0.9.8zh.tar.gz tar zxvf ./openssl-0.9.8zh.tar.gz cd ./openssl-0.9.8zh ./config enable-tlsext make make install
Nginx也要重新编译,添加OpenSSL源码的目录
./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-openssl=../openssl-0.9.8zh/
转载于:https://blog.51cto.com/fzhddn/1979345