# Install discourse together with Apache websites

**URL:** https://meta.discourse.org/t/install-discourse-together-with-apache-websites/173907
**Category:** Self-hosting
**Created:** [December 21, 2020, 10:22am UTC](https://meta.discourse.org/t/install-discourse-together-with-apache-websites/173907 "2020-12-21T10:22:53Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)
#### Post date: [December 21, 2020, 10:47am UTC](https://meta.discourse.org/t/install-discourse-together-with-apache-websites/173907/2 "2020-12-21T10:47:46Z")

</div>

> [@blades](#):
>
> Now I decided to restore my discourse backup at my apache web-server but it seems not possible.

Of course it is possible 🙂

You can easily set up Apache2 as a reverse proxy in front of Discourse and there are many tutorials on meta which support this.

Here is one example here:

> [@I want to install using a reverse proxy for Apache](https://meta.discourse.org/t/i-want-to-install-using-a-reverse-proxy-for-apache/158519):
>
> I wanted to install using Apache’s reverse proxy and tried to install with a custom port, but it didn’t work. Is there any way to do this? Checking your domain name . . . WARNING: Port 443 of computer does not appear to be accessible using hostname: DOMAIN-NAME WARNING: Connection to DOMAIN-NAME (port 80) also fails. This suggests that DOMAIN-NAME resolves to some IP address that does not reach this machine where you are installing discourse. The first thing to do is confirm that DOMAIN-N…

There are others as well, which can be found searching this site.

For example:

> [@Set up Discourse on a server with existing Apache sites](https://meta.discourse.org/t/how-to-set-up-discourse-on-a-server-with-existing-apache-sites/30013):
>
> It’s not as daunting as it sounds! While this may sound a bit intimidating at first, it’s really not all that bad. You basically need to do two things: Install HAProxy (or an alternative) which will take over port 80 and then divert your Discourse traffic to your docker container, and all your other sites to your usual Apache set-up. Let Apache know which port to listen for. While this is only a rough guide, it should do a good job of pointing you in the right direction. Let’s get star…

OBTW, a Google search turns up many hits on this topic.

---

_[View the full topic](https://meta.discourse.org/t/install-discourse-together-with-apache-websites/173907)._
