I’ve installed the latest version of Ghost on a Digital Ocean droplet, all was working fine on the backend of the system.
I have now installed the Cloudflare SSL by allowing Cloudflare to take control of my name servers.
I have now logged into the backend of the system, everything works however I no longer see a preview of my website, If I am logged in and click visit website I just see the 500 error page with the cactus.
Why has installing the Cloudflare SSL caused this problem and is there anyone that could offer some assistance in how to resolve it so I can see my website when I’m logged in.
In addition to the above, If you are familiar with the developer tools in your browser it may offer more insight.
Worth noting, by pointing your DNS to Cloudflare you aren’t ‘installing’ an SSL certificate as such. You are proxying traffic to your site via Cloudflare. Visitors will connect to Cloudflare (and receive the SSL certificate from there) and then Cloudflare connects to your server (aka origin). Do you have an SSL cert also installed on the origin? If so, what SSL mode are you using? You can see this in the SSL/TLS tab (Flexible, Full, etc). Ideally you want an SSL cert at your origin, even if its self signed, for end to end SSL. However since you can load the admin part of the site OK this may not be the issue.
Check the cache article and ssl settings, and dig into developer tools when trying the site preview. Can you reach the site homepage directly without error?
I am facing something similar and I am so tired of it. It has been bugging me since weeks now. I even did a fresh installation of version 3.21. I just can’t seem to access the Published section of the admin panel, it always gives 500 error. Even code injection doesn’t work. The weird thing is as soon as I remove pointing the CNAME to the domain name, everything works fine like a charm while blog admin is accessed from the server’s naked IP address.
My setup is similar to the OP. My self hosted Ghost blog is in a DigitalOcean droplet and the DNS manager is Cloudflare. It looks like some SSL issue but I can’t seem to work my around it for weeks. I have tried all the above-mentioned SSL settings like Off, Flexible, Strict, etc with and without page rules for the ghost admin section, but to no avail. Someone please help. I will greatly appreciate it.