redirect-http-to-https-in-nginx 发表于 2020-04-02 更新于 2024-03-24 本文字数: 19 阅读时长 ≈ 1 分钟 12345678910server { listen 80; server_name test.com www.test.com; return 301 https://test.com$request_uri;}server { listen 443 ssl http2; server_name www.test.com;}