# Set up Discourse on a server with existing Apache sites

**URL:** <https://meta.discourse.org/t/set-up-discourse-on-a-server-with-existing-apache-sites/30013>\
**Category:** Sysadmins\
**Tags:** how-to\
**Created:** [June 15, 2015, 12:37am UTC](https://meta.discourse.org/t/set-up-discourse-on-a-server-with-existing-apache-sites/30013 "2015-06-15T00:37:51Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Daffy\_Chu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daffy_chu/32/64458_2.png) [@Daffy\_Chu](https://meta.discourse.org/u/Daffy_Chu)\
**Post date:** [May 23, 2016, 5:08pm UTC](https://meta.discourse.org/t/set-up-discourse-on-a-server-with-existing-apache-sites/30013/6 "2016-05-23T17:08:50Z")

</div>

Currently I have only gotten it work for normal sites thats not discourse, as I’m having subdomain issue just for discourse. But the way I enabled the SSL in HAProxy was just by simplify adding  
`bind *:443 ssl crt /etc/haproxy/certs/cert.pem`  
into your HAProxy config under your  
`bind *:80`  
As well as since I also changed my apache SSL Port to 4444, I had to add listening to SSL line  
` backend main_apache_sites server server1 *:8080 cookie A check server server1 *:4444 check ssl verify none #added backend discourse_docker server server2 *:8888 cookie A check`

---

_[View the full topic](https://meta.discourse.org/t/set-up-discourse-on-a-server-with-existing-apache-sites/30013)._
