In a discussion titled “Domain & Subdomains” under the Hosting category, MSat7 asks how to structure their server setup to host both a main website (www.example.com) and a Discourse forum (forum.example.com) on the same DigitalOcean droplet. IAmGav clarifies that typically, the two should be on separate servers — the forum on DigitalOcean and the main site on a separate web host — and recommends creating an A record pointing forum.example.com to the DO IP. MSat7 asks if hosting both on the same server is possible, to which IAmGav replies that it’s an advanced setup and links to a meta.discourse.org guide for reference. MSat7 acknowledges the complexity and plans to revisit the topic later. pfaffman reinforces the recommendation to follow standard install instructions on a separate server, and IAmGav corrects a typo (“Social Ocean” → “Digital Ocean”) with a link. pfaffman jokes about typo editing, and MSat7 confirms their plan to proceed with separate hosting and promises to return with more questions.
I couldn’t find a similar question in the forums so I’m creating a new topic. If this question’s already been answered, apologies!
I am planning to start a forum using discourse but I am a newb when it comes to server-side stuff and have never set-up a website on a server before.
I’d like to know where I should put the files for my main site (www.example.com) once I have discourse (forum.example.com) up and running.
What will the file structure look like after discourse is installed?
What should it look like when it’s set-up in the above way?
Do I need to make any changes in the domain settings tab (A record, etc.) for this to work? (I don’t think so, but I’m not sure)
3.a. If so, what do I need to do?
I am planning to follow the 30 min install guide to get discourse installed on a $5 Digital Ocean droplet first and then upload my files for the main site.
TL;DR :
I own a domain and want my main site on it - www.example.com