Aloha!
When I type www.mydomain.com into a browser it goes to my Discourse site, however, when I type mydomain.com (without www.) it does not.
I followed Discourse’s GoDaddy set up exactly, can anyone explain how to get the mydomain.com to work?
Mahalo.
endukugga
(Alfonso Muñoz Pomer Fuentes)
September 4, 2019, 9:02am
2
This issue has nothing to do with Discourse and it’s about your domain DNS records. From your description it looks like you have an A record for the subdomain www
pointing at the IP address where you’re hosting Discourse, which is different to the root domain (usually an A record with the name @
). I’ve never used GoDaddy, so it’s better if you browse through their help section unless somebody else here can help you out.
2 Likes
merefield
(Robert)
September 4, 2019, 11:23am
3
It’s likely more than that. You also need to deal with Let’s Encrypt and your proxy to make this work if you are using https (like you should!)
See:
If you do not have https configured already (you do if you have done a standard install recently) see Setting up Let’s Encrypt as your first step,
Step 1 - letsencrypt
It’s pretty simple really, add something like the following to your app.yml hooks section:
after_ssl:
- replace:
filename: "/etc/runit/1.d/letsencrypt"
from: /--keylength/
to: "-d second-domain.com -d www.second-domain.com -d other-domain.com -d www.other-domain.com --keylength"
If you just want to…
If I were you, keep it simple and use only one.
RGJ
(Richard - Communiteq)
September 4, 2019, 11:31am
4
Configure the @ record for your domain as an A record to 45.55.96.103
This leverages our (free) service that redirects anything.tld to www.anything.tld.
5 Likes
system
(system)
Closed
October 4, 2019, 11:40am
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.