Is it possible to install Discourse on a domain already in use on another hosting?

סיכום מבוסס בינה מלאכותית

The user asks if they can install Discourse on Digital Ocean using a domain already in use on another hosting provider. ashishprajapati explains that the root domain cannot be used simultaneously on two hosts and suggests using a subdomain like forum.example.com instead. RGJ clarifies that the current hosting provides both DNS and web hosting, and a new DNS record can point to the Discourse server without disrupting the existing setup. The user then asks if they can later switch the root domain to Discourse, and RGJ advises against using the naked domain example.com, recommending www.example.com instead. nory considers using example.com for Flarum and www.example.com for Discourse, but RGJ notes this would be impractical, though technically possible.

Hi,
Currently I have example.com on a shared hosting, so DNS etc are all set up for use with that hosting.

I would like to install Discourse but on another hosting, that is Digital Ocean.

Discourse asks the domain on which to install the forum, I can put my example.com of the other hosting but then change the IP hosts on my PC to be able to see the installation of Discourse on my domain, only me? I don’t know if I made myself understood.

For now, in fact, my domain is on another hosting, on which there is Flarum, and for now I would only like to try Discourse on Digital Ocean, to see if I can use it, without moving the domain.

Thank you!

It will not allow you to use the root domain at new hosting that you are already using for other hosting platform.

Obviously, you can’t use your root domain at two place :slight_smile:

Please create a new subdomain and map your new server/hosting IP so that will work for your case. Simply, you can add new A record at your DNS settings ie ‘forum’ and add the hosting IP there.

It will make you hosting your Discourse forum on subdomain url forum.example.com.

( That way, you don’t need to move anything anywhere. Just need to add one extra entry in your DNS setting )

:slight_smile:

You have one contract with your current shared hosting provider, but actually they are providing two services for you:

  • DNS for your domain
  • web hosting, currently used for Flarum on your root domain name (or maybe www.example.com)

You can easily install or get Discourse at another provider, and then add a hostname record in your DNS (for instance forum.example.com) that points to this additional Discourse provider.

Thank you all! Then in future can I change the forum root, from forum.example.com to example.com?

I would absolutely recommend against that and use www.example.com instead, but yes, that would totally be possible.

This article elaborates on why using a so-called naked domain is not a good idea.

And if I use example.com for Flarum (for now) and www.example.com to try Discourse? :x

I would recommend against it for the same reason as before, and this would even make less sense :wink: , but yes, you could totally do that.