使用 EC2 服务器激活 SSL Namecheap
Activate SSL Namecheap with EC2 Server
我在 AWS 的 EC2 服务上有一个网站。 Web 域是在带有 SSL 保护的 Namecheap 上购买的。我正在研究如何激活此 ssl 保护。我做的第一件事是从我的 EC2 实例生成 CSR 代码。然后我去 Namecheap 使用此代码并激活 SSL 保护。我使用 "HTTP-based validation" 完成了 DCV 验证。现在在我的 Namecheap 主面板中,SSL 证书显示处于活动状态。但是当想去我的网站时,它仍然没有出现。有什么我需要做的吗?谢谢大家的宝贵时间!
是的,您需要在网络服务器上安装证书和私钥。您还需要在您的 Web 服务器上设置/启用 HTTPS。
https://www.namecheap.com/support/knowledgebase/article.aspx/795/14/how-to-install-ssl-certificates
我不能清楚地理解你的问题,但试试看是否有帮助 - 将它添加到你的网络配置文件中
<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>
我在 AWS 的 EC2 服务上有一个网站。 Web 域是在带有 SSL 保护的 Namecheap 上购买的。我正在研究如何激活此 ssl 保护。我做的第一件事是从我的 EC2 实例生成 CSR 代码。然后我去 Namecheap 使用此代码并激活 SSL 保护。我使用 "HTTP-based validation" 完成了 DCV 验证。现在在我的 Namecheap 主面板中,SSL 证书显示处于活动状态。但是当想去我的网站时,它仍然没有出现。有什么我需要做的吗?谢谢大家的宝贵时间!
是的,您需要在网络服务器上安装证书和私钥。您还需要在您的 Web 服务器上设置/启用 HTTPS。
https://www.namecheap.com/support/knowledgebase/article.aspx/795/14/how-to-install-ssl-certificates
我不能清楚地理解你的问题,但试试看是否有帮助 - 将它添加到你的网络配置文件中
<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>