安装
    需要进入到Nginx安装目录下面ssl升级
    ./configure —prefix=/usr/local/nginx_7040 —with-http_stub_status_module —with-http_ssl_module
    make
    cp ./objs/nginx /usr/local/nginx_7040/sbin/

    配置
    需要进入到/usr/local/nginx/conf/nginx.conf文件下面
    端口号需要改为443
    listen 7020 default ssl;

    ssl_certificate /usr/local/nginx_7020/cert/yinshanstreet.cn.pem;
    ssl_certificate_key /usr/local/nginx_7020/cert/yinshanstreet.cn.key;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers ALL:!DH:!EXPORT:!RC4:+HIGH:+MEDIUM:!LOW:!aNULL:!eNULL;

    nginx https安装配置 - 图1