nginx配置域名http请求强制跳转https安全链接
server {
#.....
#HTTP_TO_HTTPS_START
if ($server_port !~ 443){
rewrite ^(/.*)$ https://$host$1 permanent;
}
#HTTP_TO_HTTPS_END
#.....
}版权属于:Joyber
本文链接:https://blog.qqvbc.com/default/1234.html
转载时须注明出处及本声明