How should I setup with www. domain?

I saw in the setup guide and other questions that I need to use the same subdomain for Mailgun. So if I want to install Discourse at www.example.com, do i need to add www.example.com to Mailgun? Or example.com will work too?

3 Likes

example.com is sufficient. You will need forum.example.com or other subdomain if your Discourse is on a subdomain.

2 Likes

Ok, thanks. But I still need to use www.example.com for DISCOURSE_HOSTNAME in app.yml, right?

1 Like

No. only the domain part - example.com or forum.example.com - depending on your setup.

1 Like

hm, I thought www. is technically the same subdomain as forum.?

I want Discourse to be at www.example.com (and example.com redirects to www.)

1 Like

You’ll make that setup in the DNS zone file.

Create a CNAME record that sets www.example.com as an alias of example.com.

1 Like

No. They are . . . different.

I recommend that you configure mailgun to send from www.x.com so that if you decide that you want to do something with mail and x.com in the future it won’t be complicated by it sharing the domain with Discourse.

See https://www.forcewww.com/

1 Like

probably not, the domain is just for forum. Also in this case I probably can just use another subdomain in the future like mail.x.com?

I think I never saw anyone sending from foo@www.... Tried to search from:www in my gmail, no results.

I mean, as I understand www is just a subdomain, maybe with some special handling in some cases because it’s commonly used.