# Ghost serves images over HTTP randomly causing chrome warnings

**URL:** <https://forum.ghost.org/t/ghost-serves-images-over-http-randomly-causing-chrome-warnings/10932>\
**Category:** Developer help\
**Created:** [December 22, 2019, 1:02pm UTC](https://forum.ghost.org/t/ghost-serves-images-over-http-randomly-causing-chrome-warnings/10932 "2019-12-22T13:02:47Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![denvergeeks](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/denvergeeks/32/7401_2.png) [@denvergeeks](https://forum.ghost.org/u/denvergeeks)\
**Post date:** [April 10, 2020, 9:03pm UTC](https://forum.ghost.org/t/ghost-serves-images-over-http-randomly-causing-chrome-warnings/10932/7 "2020-04-10T21:03:29Z")

</div>

Here is how I fix this. (I simply edit my Ghost site files in [the browser-based File Manager of my cPanel-hosted Ghost sites](https://ghost-o-matic.com/my-ghost-dev-tools/).)

(Also note that after making the below change, you may need to Restart your Ghost and/or possibly also re-upload the offending images in your posts to reset the URLs in the database.)

Anyhoo, this first block of code below shows the entire contents of the **config.development.json** file in the root directory of my Ghost site.

Here you can see that that the **“url”:** was (by default, at the time of installation) set to **http** instead of **https** (as it should be, to prevent a bunch of glitchy error notices i.e. images and other content links either not working, or redirecting to https paths):

```
{
  "url": "http://keeper.gwarp.com/",
  "server": {
    "port": 2379,
    "host": "127.0.0.1"
  },
  "database": {
    "client": "sqlite3",
    "connection": {
      "filename": "/home/gwarp/KEEPER/content/data/ghost-local.db"
    }
  },
  "mail": {
    "transport": "Direct"
  },
  "logging": {
    "transports": [
      "file",
      "stdout"
    ]
  },
  "process": "local",
  "paths": {
    "contentPath": "/home/gwarp/KEEPER/content"
  }
}

```

In this second block of code you can see that I’ve just changed **http** to **https** (while leaving everything else as-is):

```
{
  "url": "https://keeper.gwarp.com/",
  "server": {
    "port": 2379,
    "host": "127.0.0.1"
  },
  "database": {
    "client": "sqlite3",
    "connection": {
      "filename": "/home/gwarp/KEEPER/content/data/ghost-local.db"
    }
  },
  "mail": {
    "transport": "Direct"
  },
  "logging": {
    "transports": [
      "file",
      "stdout"
    ]
  },
  "process": "local",
  "paths": {
    "contentPath": "/home/gwarp/KEEPER/content"
  }
}

```

---

_[View the full topic](https://forum.ghost.org/t/ghost-serves-images-over-http-randomly-causing-chrome-warnings/10932)._
