我使用的是nginx,到目前为止,如果我输入www.example.com,页面就无法加载,但是当我尝试使用https时,它可以工作。如何将www重定向到https?我曾尝试在服务器块3中这样做。Certbot
# Server block 3 if ($host = example.com) { } # managed by Certbot if ($host = www.
我试图用nginx将类似https://example.com的https域重定向到https://example.com/something。当我在浏览器中使用http://example.com但不使用https://example.com时,它可以正常工作。我的配置如下。server { server_name example.com;
re