server {
listen 80;
server_name xxxxxxxxxxxxxx.com;
rewrite ^(.*)$ https://$host$1 permanent;
}
nginx通过重定向强制使用https访问(http跳转到https)
猜你喜欢
转载自liyixing1.iteye.com/blog/2240579
今日推荐
周排行