2

我在 AWS 的 EC2 服务上有一个网站。Web 域是在 Namecheap 上购买的,具有 SSL 保护。我正在研究如何激活此 ssl 保护。我做的第一件事是从我的 EC2 实例生成 CSR 代码。然后我去 Namecheap 使用此代码并激活 SSL 保护。我使用“基于 HTTP 的验证”完成 DCV 验证。现在在我的 Namecheap 主面板中,SSL 证书显示为活动状态。但是当我想访问我的网站时,它仍然没有出现。有什么我需要做的吗?谢谢大家的时间!

4

2 回答 2

2

是的,您需要在 Web 服务器上安装证书和私钥。您还需要在 Web 服务器上设置/启用 HTTPS。

https://www.namecheap.com/support/knowledgebase/article.aspx/795/14/how-to-install-ssl-certificates

于 2018-07-18T20:13:58.533 回答
-1

我不能清楚地理解你的问题,但试试这个,看看它是否有帮助 - 将它添加到你的网络配置文件中

<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="Redirect to https" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" 
redirectType="Permanent" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
于 2018-07-18T20:25:43.860 回答