Question

Ghost: change from IP to domain plus reprocess https

Hi,

I’ve installed a Ghost instance for my site. Because I was migrating it, I decided to install it using the IP address.

Now that everything is fine, I want to redirect from WordPress to Ghost.

In terms of DNS, I’m fine. But to change it from IP address to domain, I understand that I need to change it using the terminal. Also, when I installed it, I ran a process to “create” my HTTPS certificate. I don’t know if I need to update or change it to cover my domain name.

Please, advise :-)

Thanks, Andre


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.

Bobby Iliev
Site Moderator
Site Moderator badge
November 21, 2022

Hello,

According to the official Ghost Documentation, you can change your Ghost URL with the following command:

ghost config url https://my-domain.com

In order to run the command you need to first SSH to your droplet, you could follow the steps here on how to do that:

https://www.digitalocean.com/docs/droplets/how-to/connect-with-ssh/

And then switch to the Ghost user: sudo -i -u ghost-mgr.

Hope that this helps!

Regards,

Bobby Source

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up