I apologize if this seems like a really basic question, what I want to do seems to me like something a lot of people would want to do, but my own use of Google/search couldn’t find anything on it.
I have a site at domain.com (using apache), and I want to have a Discourse forum for that site at forum.domain.com. I want the root domain and the forum domain to resolve distinctly.
I believe I have all the DNS setup correctly, with both the root domain and forum subdomain pointing/resolving to the same IP.
If I install Discourse first, the root domain always redirects to the discourse forum subdomain. So users cannot access the root domain.
And, if I setup apache first with my root domain and try to install Discourse at the forum subdomain, Discourse fails to install and says it can’t resolve the forum subdomain (even though it has no problem with this if I have not already set up apache for the root domain).
So, what am I doing wrong, and what is the proper way to create the setup I am trying to achieve?
I have both on the same server & therefore the same IP. Is that the problem, do I need two servers for this kind of setup? The documentation said forum.domain.com should have same IP as domain.com.
Is there a way to do this without using 2 servers? My client probably doesn’t want to pay to run a 2nd server for what he views as one website.