My site: https://blog.linuxdeveloper.io
This is with the “headline” theme.
Am I doing something wrong?
It caused by mixed http / https content. In this case, your SSL certificate is valid.
Yes, I understand, but why is it happening. Does this mean there is an error in the template? Do I need to find the places in the template where it is using http and change it to https?
Like you said, my SSL certificate is valid.
C’mon, you’re a developer! You’re serving both http and https content through Ghost and the Nginx proxy.
It’s got nothing to do with the template; you misconfigured Ghost and Nginx.
What’s you Nginx config like?
In this case, your Ghost config has the URL as
http://blog.linuxdeveloper.io/ instead of
https://blog.linuxdeveloper.io/. All URLs generated by Ghost will use the URL you configured there which is why you’re seeing the issue.
To fix this, run
ghost config set url https://blog.linuxdeveloper.io/ in your ghost installation directory, and then restart ghost with
@vikaspotluri123 thank you very much for the detailed instructions. I didn’t realise I had the url set to http instead of https.
I updated it to https, and now everything is working as expected.