讨论数量: 
            
            
    
            404不是证书问题,是资源路径问题。 另外可以给你一份我的配置做参考
#重定向到https请求
server {
  listen          80;
  server_name     brad.9iqu.cn;
  return          301 https://$server_name$request_uri;
}
#https
server {
    listen       443 ssl http2 ; #SSL访问端口号为443
    server_name  brad.9iqu.cn;
    ssl_certificate cert/1_brad.9iqu.cn_bundle.crt; #证书文件
    ssl_certificate_key cert/2_brad.9iqu.cn.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;
    #charset koi8-r;
    #access_log  logs/host.access.log  main;
    location / {
        root  /www/hexo-blog/public;
        index index.html index.htm index.php;
    }
    # redirect server error pages to the static page /50x.html
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }
    # deny access to .htaccess files, if Apache's document root
    location ~ /\.ht {
        deny  all;
    }
}ssl nginx配置,可以到腾讯云阿里云文档里找, 腾讯 cloud.tencent.com/document/product... 阿里 help.aliyun.com/document_detail/98...
 
          
 
         
                     
                     
             
             
             
             
             
             
           
           关于 LearnKu
                关于 LearnKu
               
                     
                     
                     粤公网安备 44030502004330号
 粤公网安备 44030502004330号 
 
推荐文章: