Installing Discourse alongside Apache websites

April 22, 2017 2.1k views
Apache Docker Ubuntu 16.04

I want to install Discourse on a VPS with 2 other website hosted with Apache and LetsEncrypt.

How do I go about installing Discourse? When I try to install it says port 80 is already in use.

1 Answer


By default, the app.yml file for Discourse binds Port 80, or attempts to. Since you already have port 80 bound due to Apache, you'd need to modify app.yml, bind Discourse to an alternate port, and then proxy requests on Port 80 to Discourse (to keep the new port out of the URL).

The above provides configuration for NGINX only, however, so you would need to set up proxying for Apache if you don't want to use NGINX.

Have another answer? Share your knowledge.