Installing Discourse alongside Apache websites

April 22, 2017 396 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

@CrypticCube

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).

https://meta.discourse.org/t/advanced-setup-and-administration/15929

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.