VPS运维

安装了SSL证书,强制HTTP跳转到HTTPS

2015-6-4 301字 2,621

if ($server_port = 80) {
    return 301 https://$server_name$request_uri;
}
if ($scheme = http) {
    return 301 https://$server_name$request_uri;
}
error_page 497 https://$server_name$request_uri;
版权声明:Shire 发表于 2015-6-4
转载请注明: 安装了SSL证书,强制HTTP跳转到HTTPS | Shire

评论