By rabitt
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 : )
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.