How to install Discourse in WWW

I can install discourse in but I want to use the www version.
If someone visits they should redirect to

Should I need to use as hostname?

NB: I know it’s a basic question but I’m new to cloud computing. I’ll be thankful if you guys can help me.

Thanks in advance.

When creating the A DNS entry on your domain provider, create it under the www subdomain instead of the root.

After that, when running ./discourse-setup part of the Discourse official Standard Installation pass the domain with the www. part too.


See for a simple solution. There are others.


I found the solution. And I’ve pointed the installation to the discourse forum using www