Https://www.moonfly.net/801.html
Http://www.centoscn.com/image-text/config/2015/0423/5251.html
1. View Nginx version and installation configuration
Nginx-v confirm that Nginx support for SNI is turned on; TLS SNI supports disabled is not turned on!
Nginx-V nginx version:nginx/1.0. the GCC 4.1 . 2 20080704 4.1. 2-() TLS SNI support disabled --user=www--group=www-- Prefix=/usr/local/nginx--with-http_stub_status_module--with-http_ssl_module--with-http_gzip_static_module
2. Download OpenSSL http://www.openssl.org/Note Catalogue
OpenSSL can also be updated see http://www.111cn.net/sys/CentOS/61326.htm
3, download nginx http://nginx.org/decompression command tar zxvf compressed file
4, enter the Nginx directory, compile
Note the relative directory of OpenSSL for 1 make,2 red characters
#cd nginx-1.10. 2#. /configure--user=www--group=www --prefix=/usr/local/nginx --with-http_stub_ Status_module --with-http_ssl_module --with-http_gzip_static_module --with-openssl=. /openssl-1.0. 2j#make
5. Backup and update
mv /usr/local/nginx/sbin/nginx/usr/local/nginx/sbin/nginx.old backup CP objs/nginx/usr/ local/nginx/sbin/nginx Command Replace new /usr/local/nginx/sbin/nginx-t test make upgrade update
Hot install Nginx and support multi-site SSL