Nginx https支持配置

server {
        listen 443;
        server_name XX.XXzhihui.com;
        ssl on;
        ssl_certificate 1_XX.XXzhihui.com_bundle.crt;
        ssl_certificate_key 2_XX.XXzhihui.com.key;
        ssl_session_timeout 5m;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
        ssl_prefer_server_ciphers on;
    location / {
     proxy_pass https://172.223.XX.XXX:8888/;
     proxy_set_header   Host    $host;
     proxy_set_header   X-Real-IP   $remote_addr;
     proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    }

你可能感兴趣的:(nginx,nginx,ssl,server)