所有的80端口的http请求都会被重定向到https
server {
listen 80;
server_name xxx.club;
rewrite ^(.*)$ https://$host$1 permanent;
}
所有的80端口的http请求都会被重定向到https
server {
listen 80;
server_name xxx.club;
rewrite ^(.*)$ https://$host$1 permanent;
}