TLDR: Only one version is working with SSL, either www or non-www, as same as hostname provided while installation.
It’s related to Let’s Encrypt SSL installation as written at Docs.
So, after launching setup it was asked to enter
Hostname for your Discourse? [discourse.example.com]:
So, I typed
Next, after installing Discourse, I am facing one problem that SSL is not working for the www version.
For non-www, it’s works fine.
Ideally, I would like to have SSL for www and non-www version also.
I repeated entire process this time with
www.example.com hostname, then SSL for non-www is not working.
What’s I am missing?