nginx https 安装配置

server {
    listen 80;
    server_name localhost;
    root html;
    index index.html index.htm;
   
    
    listen 443 ssl;  #注意这里
    #ssl on;
    ssl_certificate      cert/214525134250577.pem;
    ssl_certificate_key  cert/214525134250577.key;
    ssl_session_timeout 5m;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    ssl_protocols TLSv1;
    ssl_prefer_server_ciphers on;
 
    location / {
        root html;
        index index.html index.htm;
    }

猜你喜欢

转载自blog.csdn.net/qq_16014497/article/details/85706174