The discussion revolves around setting up a Discourse server on a subdomain (community.example.com) and forwarding the root domain (example.com) to the subdomain.
Initially, agf1997 considered creating a CNAME record to point the root to the subdomain, but this was not possible with their provider, Digital Ocean. supermathie explained that this approach would break DNS and recommended using a provider that supports CNAME flattening or configuring a web server to send a redirect from the root to the subdomain.
agf1997 sought clarification on the setup, and supermathie emphasized that CNAME records are just pointers and don’t affect the browser’s behavior. A web server redirect is still necessary.
maiki shared their experience with a similar setup and highlighted the importance of testing redirects with both HTTP and HTTPS protocols to avoid issues with SSL certificates. They recommended using a redirect service that provisions an SSL certificate, such as Gandi’s “web forwarding” feature.
Sorry for the basic DNS question. I know this isn’t specifically a discourse thing, just trying to figure out the best way to handle this with discourse in the mix.
I’d like to do this to effectively reserve the root for the future use of another service (say a webserver), but not require users to type in the subdomain to get to the discourse server for now.
Is the best way to setup two A records (one for the root and one for the subdomain) that both point to the discourse server?
I was initially thinking that I should setup a CNAME that points from the root to the subdomain, but digital ocean doesn’t seem to let me do that.
Thanks in advance, and again, sorry for the basic question.
So the A record for example.com would point to the IP of the discourse server and the CNAME would have community.example.com be an alias of example.com?
Wouldn’t that put the discourse server at example.com? Sorry just trying to get this straight in my brain