Site icon moneyslow.com

nginx中80端口跳转到443端口的方法

各CA的OCSP/CRL CDN延时分析

各CA的OCSP/CRL CDN延时分析

网站升级为https后,需要将http的访问跳转到https,可以用如下nginx的配置方法:

server {
listen 80;
listen 443 ssl;
server_name moneyslow.com blogcdn.a8z8.com;

if ($ssl_protocol = "") {
rewrite ^ https://$server_name$request_uri? permanent;
}

。。。。。。。

}

Exit mobile version