# Cannot GET / error when using real site url in config

**URL:** <https://forum.ghost.org/t/cannot-get-error-when-using-real-site-url-in-config/27154>\
**Category:** Developer help\
**Created:** [December 3, 2021, 6:04pm UTC](https://forum.ghost.org/t/cannot-get-error-when-using-real-site-url-in-config/27154 "2021-12-03T18:04:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gkovacs](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/gkovacs/32/15944_2.png) [@gkovacs](https://forum.ghost.org/u/gkovacs)\
**Post date:** [December 3, 2021, 6:04pm UTC](https://forum.ghost.org/t/cannot-get-error-when-using-real-site-url-in-config/27154/1 "2021-12-03T18:04:32Z")

</div>

We have a GHOST install running on a local IP behind NGINX proxying and serving SSL. If I put the real site URL in config, GHOST gives the “ **Cannot GET** /” error:

```auto
{
  "url": "https://mydomain.com/blog",
  "server": {
    "port": 2368,
    "host": "10.10.10.1"
  },

```

If I put the local IP and port in config, GHOST runs and serves pages, but many things are broken (e.g. email invitations contain the wrong URL)

```auto
{
  "url": "http://10.10.10.1:2368",
  "server": {
    "port": 2368,
    "host": "10.10.10.1"
  },

```

Any idea what goes wrong?

---

<div class="post-metadata">

**Author:** ![inoryum](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/inoryum/32/11866_2.png) [@inoryum](https://forum.ghost.org/u/inoryum)\
**Post date:** [December 4, 2021, 6:01am UTC](https://forum.ghost.org/t/cannot-get-error-when-using-real-site-url-in-config/27154/2 "2021-12-04T06:01:56Z")

</div>

change `host` with `127.0.0.1`

```auto
{
  "url": "https://mydomain.com/blog",
  "server": {
    "port": 2368,
    "host": "127.0.0.1"
  },

```

Make sure your `location` block looks like below within your nginx server block

```auto
location /blog/ {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Host $http_host;
    proxy_pass http://127.0.0.1:2368;
}

```

Restart nginx

& It should work properly
