I installed Ghost via 1-click image on DigitalOcean. However after I followed instructions the site is not accessible from www subdomain, only denimandleather.me
It seems to redirect to var/www/html/index.html instead of Ghost.
I tried rebuilding 1-click image several times but got different errors. I also installed SSL using certbox.
I also tried not using certbox and using Ghost’s built in SSL setup but requests that were sent to http: instead of https: were not redirected and resulted in ghost not loading. Editing /var/www/ghost/config.production.json and forcing https caused https://www.denimandleather.me to produce an error (invalid SSL certificate).
Configuration files are:
Current configuration etc/nginx/sites-available/default lists the servers.
I used certbot to install SSL certificate, with /var/www/ghost/config.production.json forcing https.
I’d like all domains all to load the blog page properly instead of giving “Welcome to nginx!” message, and also always redirect to https and to make sure the SSL certificate is auto-renewed every 3 months.
Now it looks like both denimandleather.me and www subdomain to both display the nginx welcome page instead of Ghost.