Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29253

Featured Image not load after installing SSL Bitnami Apache

$
0
0

I have recently create a ghost site on AWS EC2. I use Bitnami Ghost Image to install ghost. This image uses apache for web server. And my ghost cms version is 3.9.0 .

I use Cloudflare for map dns. But proxy is disabled on dns is enabled.

I use Chrome to browser my site.

After installation complete I open ghost website and Admin dashboard. Everything seems right. I create a test post, write some content, add some images and a feature image. Then post it. When I view the post it ok. Everything load perfect.

After that i Install SSL certificate using a command that is provided by bitnami blog.

/opt/bitnami/bncert-tool

After that I see the post again that I create previews and also home. Every this load perfect, But feature image is not load both in home page and post page. When I inspect feature post using right click and then inspect, Image URL is starting from http:// not from https:// .

After that I also use a command

ghost config url https://sharebites.xyz

But nothing happen.

Now my config.production.json file settings is like that

{
  "url": "http://sharebites.xyz",
  "urlSSL": "https://sharebites.xyz",
  "server": {
    "port": 2368,
    "host": "127.0.0.1"
  },
  "database": {
    "client": "..................",
    "connection": {
      "host": "..................",
      "user": "..................t",
      "password": "..................",
      "database": ".................."
    }
  },
  "mail": {
    "transport": "Direct"
  },
  "logging": {
    "transports": [
      "file"
    ]
  },
  "process": "local",
  "paths": {
    "contentPath": "/opt/bitnami/apps/ghost/htdocs/content"
  }
}

I remove Database username, password and database name with ‘…’ for security purpose.

Now feature image will load. But my website some time load on SSL and some time not on SSL.

Now feature image address is relative address in inspect. and other post content images still use absolute address with http://

Please help me.


Viewing all articles
Browse latest Browse all 29253

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>