Nginx 代理80端口转443端口 修改nginx配置文件 server { listen 80; server_name 域名或IP; return 301 https://$server_name$request_uri; } 增加return 301 https://$server_name$request_uri;配置,重定向到https访问 重启Nginx nginx监听80端口,收到HTTP请求自动跳转HTTPS