Installing Discourse alongside Apache websites

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.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


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.