Nginx从HTTP跳转到HTTPS 服务器 | 2021-10-20 16:06 | 427 | 0 1、使用rewrite指令 server { listen 80; server_name domain.com; rewrite ^(.*) https://$server_name$1 permanent; #或 #rewrite ^(.*) https://www.xxxxx.com$1 permanent; #或 #rewrite ^(.*… Nginx