So have followed this guide: https://www.digitalocean.com/community/tutorials/how-to-set-up-the-digitalocean-ghost-one-click-application-for-ubuntu-16-04
All works fine apart from when I try and visit the site with www in the URL.
All the browser says is “Safari cannot open the page because it could not establish a secure connection to the server”
What else do I need to do to redirect WWW to NON-WWW?
I have created an A Record for the WWW in the Domains section of the droplet.
I have also tried editing MYDOMAIN.co.uk-ssl.conf and MYDOMAIN.co.uk.conf adding the www url to the server_name entry and getting the same error.
Please help :(
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
It sounds like your certificate does not include the www version of the domain, so your browser is rejecting the connection before the server gets a chance to issue a redirect.
If you’re using letsencrpyt, leave your non-www domain as server name, add the www domain under ServerAlias, then rerun letsencrypt and check off both domains, so it will create a certificate with both.
Worked like a charm! Just make sure you have to cd to ghost directory (/var/www/ghost) to be able to run cli commands, also you cannot run this as root.
https://my-second-domain.com, puede ser https://www.my-second-domain.com
eso es lo único que me hace equivocar, alguien me puede ayudar por favor
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.