nginx 全站 http 跳转 https
server { listen 80; server_name www.xxx.com; return 301 https://$host$request_uri; } server { listen 443; server_name www.xxx.com; ssl_certificate /etc/nginx/ssl/www.xxx.com.p
server { listen 80; server_name www.xxx.com; return 301 https://$host$request_uri; } server { listen 443; server_name www.xxx.com; ssl_certificate /etc/nginx/ssl/www.xxx.com.p