# How can I enable SSL while running on a different port + Issue with subdomain

**URL:** <https://meta.discourse.org/t/how-can-i-enable-ssl-while-running-on-a-different-port-issue-with-subdomain/44646>\
**Category:** Self-hosting\
**Created:** [2016 年5 月 23 日 02:52 UTC](https://meta.discourse.org/t/how-can-i-enable-ssl-while-running-on-a-different-port-issue-with-subdomain/44646 "2016-05-23T02:52:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)\
发布日期： [2016 年5 月 23 日 07:51 UTC](https://meta.discourse.org/t/how-can-i-enable-ssl-while-running-on-a-different-port-issue-with-subdomain/44646/2 "2016-05-23T07:51:20Z")

</div>

Who is handling SSL here, HAProxy or Discourse? It seems like the answer is “both”, which is not good.

The usual approach is to let the front-end server handle SSL (HAProxy in your case), and then only use HTTP for the internal communication.

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-enable-ssl-while-running-on-a-different-port-issue-with-subdomain/44646)._
