# How to run Discourse as an Apache VirtualHost

**URL:** <https://meta.discourse.org/t/how-to-run-discourse-as-an-apache-virtualhost/154707>\
**Category:** Self-hosting\
**Created:** [12 juni 2020 om 21:37 UTC](https://meta.discourse.org/t/how-to-run-discourse-as-an-apache-virtualhost/154707 "2020-06-12T21:37:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![nap](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@nap](https://meta.discourse.org/u/nap)\
**Post date:** [12 juni 2020 om 21:37 UTC](https://meta.discourse.org/t/how-to-run-discourse-as-an-apache-virtualhost/154707/1 "2020-06-12T21:37:36Z")

</div>

I’ve successfully been able to install Discourse on my server, register as the first user, and post my first topic. So everything on the Discourse side of things seems to be working.

However, in order to get Discourse installed and running, I had to disable my Apache httpd daemon. This is a major problem for me as I’ve basically shutdown my entire web server, which includes a bunch of domains as well as a Jitsi conference server.

My Jitsi installation runs as a separate virtual host using a subdomain of one of the websites I’m hosting. Since Jitsi is able to share port 443 with the other web traffic, I would like to do the same with Discourse.

Has anyone got a template virtualhost definition that allows traffic to be handed over to Discourse when it comes in on the Discourse subdomain?

---

_[View the full topic](https://meta.discourse.org/t/how-to-run-discourse-as-an-apache-virtualhost/154707)._
