Redirect WWW to NON-WWW - Ghost 1 Click Install

So have followed this guide:

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 and adding the www url to the server_name entry and getting the same error.

Please help :(

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business., puede ser

eso es lo único que me hace equivocar, alguien me puede ayudar por favor

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.

Hey I have the same issue. I am new to ubuntu, terminal etc. I’m sorry how do i edit the config file to add www that the ghost script created when it configured letsEncrypt? I dont see it in the directory, it says its in var folder, but i dont see that. Creating ssl config file at /var/www/ghost/system/files/