# Can you move domain on DO without creating a new droplet?

**URL:** <https://forum.ghost.org/t/can-you-move-domain-on-do-without-creating-a-new-droplet/19883>\
**Category:** Installation\
**Created:** [February 1, 2021, 2:32pm UTC](https://forum.ghost.org/t/can-you-move-domain-on-do-without-creating-a-new-droplet/19883 "2021-02-01T14:32:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjmscott](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sjmscott/32/7336_2.png) [@sjmscott](https://forum.ghost.org/u/sjmscott)\
**Post date:** [February 1, 2021, 2:32pm UTC](https://forum.ghost.org/t/can-you-move-domain-on-do-without-creating-a-new-droplet/19883/1 "2021-02-01T14:32:55Z")

</div>

Is it possible to move Ghost from one domain, i.e. [www.foo.com](http://www.foo.com) to [www.woohoo.com](http://www.woohoo.com)? Or, do I need to create a new droplet. I thought I was doing something simple and I have crated a major problem for myself.

I thought I could buy the “woohoo” domain, change the DNS settings and change the config files from foo to Woo. These simple steps didn’t work and now I’m in Error 502 Bad Gateway territory.

1. How do I move from foo to woohoo?
2. Is it possible for me to access my site without a web address? Silly me, I should have exported the site before doing anything.

Thank you

---

<div class="post-metadata">

**Author:** ![daniel1](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@daniel1](https://forum.ghost.org/u/daniel1)\
**Post date:** [February 1, 2021, 3:46pm UTC](https://forum.ghost.org/t/can-you-move-domain-on-do-without-creating-a-new-droplet/19883/2 "2021-02-01T15:46:06Z")

</div>

Hi @sjmscott,

just to be clear.

You did change ghosts url from foo to woohoo like this and restarted ghost:

```auto
$ ghost config url https://woohoo.com
$ ghost restart

```

You did point woohoo DNS to your Droplet IP correctly.

Yes you can access your site directly via the Droplet IP.

---

<div class="post-metadata">

**Author:** ![sjmscott](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sjmscott/32/7336_2.png) [@sjmscott](https://forum.ghost.org/u/sjmscott)\
**Post date:** [February 1, 2021, 4:08pm UTC](https://forum.ghost.org/t/can-you-move-domain-on-do-without-creating-a-new-droplet/19883/3 "2021-02-01T16:08:35Z")

</div>

@daniel1 thank you!

- Yes I did change the config url and did the ghost restart.
- I set up a redirect from woo to foo. It worked.
- Yes I think I did the DNS to the Droplet IP correctly, but I all I saw was “website coming soon”
- I panicked because the website was “down” and changed everything back to the original settings, but I think I’ve created a problem now with 502 Bad Gateways.

I would feel more comfortable with things if I could log into my site with the ip address [https://206.189.71.60/](https://206.189.71.60/) and export the site. I would be happy to spin up another dropblem and import the site if that is easy.

I’m also thinking I might just pay for ghost hosting if they reply before I can figure this out. My site is down and I have people emailing me 😱

> **[Stephen Joseph Scott](https://www.stephenjosephscott.com/)**
>
> Unmute Yourself | G.I.V.E Your Gift to the World

---

<div class="post-metadata">

**Author:** ![daniel1](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@daniel1](https://forum.ghost.org/u/daniel1)\
**Post date:** [February 1, 2021, 4:21pm UTC](https://forum.ghost.org/t/can-you-move-domain-on-do-without-creating-a-new-droplet/19883/4 "2021-02-01T16:21:48Z")

</div>

Try ghost doctor in your terminal and see if something comes up.  
Also check ghost log for any errors:

```auto
$ ghost doctor
$ ghost log

```

Check what port ghost listens to:

```auto
$ ghost ls

```

See if rebooting your droplet does anything:

```auto
$ reboot

```

_EDIT:_  
Check if the port mentioned in `ghost ls` corresponds with the port mentioned in the nginx config file for your site, located at  
`/etc/nginx/sites-enabled/yourghostinstancename.conf`

If not:  
change port number in _config.production.json_ file in ghost root folder to the port correct port number under “server” → “port”: 2386 (example)

---

<div class="post-metadata">

**Author:** ![sjmscott](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sjmscott/32/7336_2.png) [@sjmscott](https://forum.ghost.org/u/sjmscott)\
**Post date:** [February 1, 2021, 4:33pm UTC](https://forum.ghost.org/t/can-you-move-domain-on-do-without-creating-a-new-droplet/19883/5 "2021-02-01T16:33:20Z")

</div>

Thanks, @daniel1 I feel I’m in over my head. I did some of those things, i.e. reboot.

```
Debug Information:
OS: Ubuntu, v18.04.4 LTS
Node Version: v12.18.0
Ghost Version: 3.40.1
Ghost-CLI Version: 1.15.3
Environment: production
Command: 'ghost log'

```

I’m not sure how to diagnose this from Ghost Doctor

```
✔ Checking system Node.js version

✔ Checking logged in user

✔ Ensuring user is not logged in as ghost user

✖ Checking if logged in user is directory owner

✖ Checking current folder permissions

✔ Checking system compatibility

✔ Checking for a MySQL installation
```

---

<div class="post-metadata">

**Author:** ![daniel1](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@daniel1](https://forum.ghost.org/u/daniel1)\
**Post date:** [February 1, 2021, 5:04pm UTC](https://forum.ghost.org/t/can-you-move-domain-on-do-without-creating-a-new-droplet/19883/6 "2021-02-01T17:04:13Z")

</div>

My guess is still, that your port number got mixed up somehow.  
Please navigate to `/etc/nginx/sites-enabled/yourghostinstancename.conf`  
Open .conf file with `sudo nano yourghostinstancename.conf` and look for “proxy\_pass”:  
 ![Screenshot from 2021-02-01 18-03-04](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/e/e50b74b4846c179fb4bdd613d30cf02db25c6b3f.png)  
Note down Portnumber (eg. 2368)  
Navigate back to your ghost root folder at `/etc/var/www/ghost/`  
Type `ghost ls` to check if shown Port corresponds with the Port mentioned in the above mentioned nginx conf file. If yes, good. If not, follow these steps (still in ghost root directory).

```auto
sudo service nginx stop
sudo nano config.production.json

```

Change port to the above mentioned nginx port number.  
 ![Screenshot from 2021-02-01 18-01-05](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/d/d661c15a01838b0247527357af4fa682f1a785de.png)

```auto
sudo ghost restart
sudo service nginx start

```

---

<div class="post-metadata">

**Author:** ![sjmscott](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sjmscott/32/7336_2.png) [@sjmscott](https://forum.ghost.org/u/sjmscott)\
**Post date:** [February 1, 2021, 11:53pm UTC](https://forum.ghost.org/t/can-you-move-domain-on-do-without-creating-a-new-droplet/19883/7 "2021-02-01T23:53:09Z")

</div>

@daniel1 Thanks for all of your help. I’d like to see if I can solve this:

> [@sjmscott](#):
>
> Is it possible for me to access my site without a web address? Silly me, I should have exported the site before doing anything.

Is it possible for me to access the site without the DNS resolving? I’d like to log in and export all of the contents. Then, import it into a ghost pro site.

Thanks!

---

<div class="post-metadata">

**Author:** ![daniel1](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@daniel1](https://forum.ghost.org/u/daniel1)\
**Post date:** [February 2, 2021, 12:38am UTC](https://forum.ghost.org/t/can-you-move-domain-on-do-without-creating-a-new-droplet/19883/8 "2021-02-02T00:38:48Z")

</div>

Im afraid that’s not possible. If you cant reach ghost over the web, you cant export the json file.

Did you manage to find out, if the port is correct?

---

<div class="post-metadata">

**Author:** ![sjmscott](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sjmscott/32/7336_2.png) [@sjmscott](https://forum.ghost.org/u/sjmscott)\
**Post date:** [February 2, 2021, 12:55am UTC](https://forum.ghost.org/t/can-you-move-domain-on-do-without-creating-a-new-droplet/19883/9 "2021-02-02T00:55:19Z")

</div>

No, despite your directions, I’m having trouble figuring it out. Thanks for all of your help. I’ll keep trying.

Lesson learned: export the json file frequently and keep offline file of members. This is very stressful right now.

---

<div class="post-metadata">

**Author:** ![sjmscott](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sjmscott/32/7336_2.png) [@sjmscott](https://forum.ghost.org/u/sjmscott)\
**Post date:** [February 2, 2021, 1:42am UTC](https://forum.ghost.org/t/can-you-move-domain-on-do-without-creating-a-new-droplet/19883/10 "2021-02-02T01:42:46Z")

</div>

@daniel1 I couldn’t figure it out via the terminal, but I saw the port numbers didn’t match. I was able to change the ports vis SFTP and . . .

# I’m back! @daniel1 you are my hero!

---

<div class="post-metadata">

**Author:** ![daniel1](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@daniel1](https://forum.ghost.org/u/daniel1)\
**Post date:** [February 2, 2021, 12:40pm UTC](https://forum.ghost.org/t/can-you-move-domain-on-do-without-creating-a-new-droplet/19883/11 "2021-02-02T12:40:23Z")

</div>

That’s awesome!  
Glad you worked it out.
