Question

how to set 'www' in discourse (docker installation)

Hi guys, I have installed discourse from docker in a Ubuntu 18 server, and I’m also using digitalocean to manage my domain. My discourse installation works fine in mydomain.net, in fact, I set that domain when I setup the app ( ./discourse-setup ). Then I add an A record “www” pointing to my server ip, but when I visit www.mydomain.net, I get Your connection is not private errorr :(

How can I to dd that ‘www’ subdomain to discourse, using LetsEncrypt? I want: www redirect to non-www, and works fine with https.

I hope you can help me and sorry for my english : )

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey friend!

Currently Discourse does not support more than one hostname. With that said, I’m running the same setup at a website of mine and I noticed that it has covered requests to www over https without error, and is redirecting them to my non-www page. I’ve not dug into the Nginx/LE config for Discourse recently, but that seems intentional. All I did was point mydomain.tld to the droplet IP, point www as a CNAME to mydomain.tld, and then installed Discourse while giving it the mydomain.tld URL to set itself up on.

Jarland

hi, thanks for answer, so all should I do is add a cname subdomian “www.mydomain.com” pinting to my “mydomain.com” (wich I will set as hostname in discourse installation)?

“www” should be cname or A record? “www” should point to maindomain.com or droplet ip?