yiwai 发表于 2018-11-10 10:44:43

Nginx(https配置)

server {  
      listen      443 ssl;
  
      server_name       www.xxx.cn localhost;#xxx填对应域名
  
      ssl_certificate      xxx.crt;   #xxx对应证书
  
      ssl_certificate_keyxxx.key;   #xxx对应证书秘钥
  
      ssl_session_cache    shared:SSL:1m;
  
      ssl_session_timeout5m;
  
      ssl_ciphersHIGH:!aNULL:!MD5;
  
      ssl_prefer_server_cipherson;
  
      location / {
  
            root   html;
  
            indexindex.html index.htm;
  
      }


页: [1]
查看完整版本: Nginx(https配置)