Www or https://www site not working

  • **What’s your URL?
    www.kurazav.com
  • **What version of Ghost are you using?
    Ghost-CLI version: 1.15.3 Ghost version: 3.40.2

I installed ghost following the tutorial how-to-install-and-configure-ghost-on-ubuntu-16-04 from digital ocean.

kurazav and https:// works just fine, but www.kurazav or https://www.kurazav don’t work at all as I get the error “Error code: SSL_ERROR_BAD_CERT_DOMAIN”.

I’ve tried redoing the ‘ghost setup’, as suggested on this forums on another thread with this problem, for www.kurazav.com, but it didn’t fix my problem. I still get the same error.

My domain is from namecheap, and I have A records for both @ and www
In /etc/nginx/sites-enabled I have these folders - default ssl conf and conf for both www and non, with all files automatically set up. I have only tried to do a 301 redirect from www to non-www but still doesn’t work.

When I curl -I my site with https and www I get this error: "curl: (60) SSL: no alternative certificate subject name matches target host name ‘MYSITE’ "

I don’t know what else to do.

Isn’t it possible for you, devs, to automatically make installation for both www and non-www when one does ghost setup? It’s a pain in the back for many, otherwise.

EDIT: only 3 links allowed so deleted much of my explanation
EDIT2: I’ve also - ghost config set url for both but still no result

The instructions configuring a domain to redirect are here:

Adding redirect support for the www / naked domain is something that’s been discussed for the CLI, but a final decision hasn’t been made yet

1 Like

I managed to make them redirect using the link you provided me with.

One more additional question - in my /ghost at View Site tab, the site is not shown, but an error appears instead - "Firefox Can’t Open This Page

To protect your security, kurazav.com will not allow Firefox to display the page if another site has embedded it. To see this page, you need to open it in a new window."
or on opera -
" kurazav.com is blocked

kurazav.com refused to connect.

ERR_BLOCKED_BY_RESPONSE"

What causes this?