How do I setup ngninx on the same droplet as a manual install of Discource (forum)?

I installed discource, using this tutorial. It worked great but now when I go to, it automatically redirects to my subdomain. Just doesn’t seem to work.

I am now confused on what to do next to be able to create a site, using the same droplet, on my domain.

I installed nginx but it gave me an error code, saying that the “Address already in use.”

All of the tutorials I am reading say to, for example, “Then, configure nginx to serve files from that directory. Open /etc/nginx/sites-available/default in your favorite text editor and update the line with the root directive such that it looks as follows:” I guess my problem might be, I have no idea how to edit get to these file and edit them in a text editor.

Appreciate any and all help y’all can throw my way.

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


You need to change the port that discourse listens on it, maybe use 8080 so you can use port 80 for Nginx.

Hope this helps.