# 如何在 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 年9 月 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:** 5

<div class="post-metadata">

**Author:** ![asugar](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@asugar](https://meta.discourse.org/u/asugar)\
**Post date:** [2022 年9 月 30 日 20:09 UTC](https://meta.discourse.org/t/how-to-redirect-http-to-https-on-digital-ocean-droplet/240511/5 "2022-09-30T20:09:27Z")

</div>

感谢您的回复。  
我是 Docker/Discourse/RoR 新手，不确定它底层具体使用了什么？  
Discourse 使用什么作为 Web 服务器？Nginx 还是 Apache？我们不能从任何配置文件重定向子域吗？

---

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