Configurar discourse.domain.com con el sitio principal en domain.com

The standard set up for what you want to achieve is two servers.

I believe it is achievable on the same server … I’ve never tried it. Good luck.

You need to educate your client that root and any subdomains are different websites.
Especially if they expect to grow visitor numbers.

4 Me gusta