技术 March 14, 2021 nginx服务器配置https # 监听80端口,http请求转发到https监听的443端口 server { listen 80; server_name localhost; return 301 https://$server_name$request_uri; } # 监听443端口,https请求 server { listen 443 ssl; ...