# 如何在 Digital Ocean Droplet 上将 http 重定向到 https？

**URL:** https://meta.discourse.org/t/how-to-redirect-http-to-https-on-digital-ocean-droplet/240511
**Category:** Self-hosting
**Created:** [2022年九月30日 19:45 UTC](https://meta.discourse.org/t/how-to-redirect-http-to-https-on-digital-ocean-droplet/240511 "2022-09-30T19:45:12Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2022年九月30日 20:05 UTC](https://meta.discourse.org/t/how-to-redirect-http-to-https-on-digital-ocean-droplet/240511/4 "2022-09-30T20:05:28Z")

</div>

您可以使用 [forcewww.com](http://forcewww.com) 让您的 apex 域名重定向到 www。http → https 在 www 上已经可以正常工作。

一种更复杂的方法，我目前不知道如何实现，是[设置 Let’s Encrypt 配合多个域名](https://meta.discourse.org/t/set-up-let-s-encrypt-with-multiple-domains/56685)（旧的说明似乎不再有效），所以我建议使用 `forcewww.com`。

我打算弄清楚如何解决多域名方案的问题，但有太多其他付费工作挡道。

---

_[View the full topic](https://meta.discourse.org/t/how-to-redirect-http-to-https-on-digital-ocean-droplet/240511)._
