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
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.


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.