# Ghost blog returning images via http instead of https

**URL:** <https://forum.ghost.org/t/ghost-blog-returning-images-via-http-instead-of-https/9582>\
**Category:** Installation\
**Created:** [October 17, 2019, 10:18pm UTC](https://forum.ghost.org/t/ghost-blog-returning-images-via-http-instead-of-https/9582 "2019-10-17T22:18:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anuragp](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/anuragp/32/4774_2.png) [@anuragp](https://forum.ghost.org/u/anuragp)\
**Post date:** [October 17, 2019, 10:18pm UTC](https://forum.ghost.org/t/ghost-blog-returning-images-via-http-instead-of-https/9582/1 "2019-10-17T22:18:31Z")

</div>

I setup a ghost blog on google cloud, with SSL being handled on Google’s own load balancer. The pages load fine without any issues, however, whenever I upload images to my posts, the images are loaded over http and not https.

- URL: [https://webfives.com](https://webfives.com)  
affected URL: [What are Accelerated Mobile Pages – AMP ? - WebFives](https://webfives.com/what-are-accelerated-mobile-pages-amp/) (shows images over http)
- What version of Ghost are you using: 2.37.0
- used `ghost install` for config
- Chrome
- Images are loaded over http instead of https

I tried telling nginx to force https, but that resulted in too many redirects.

---

<div class="post-metadata">

**Author:** ![badrihippo](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/badrihippo/32/3213_2.png) [@badrihippo](https://forum.ghost.org/u/badrihippo)\
**Post date:** [October 18, 2019, 5:00am UTC](https://forum.ghost.org/t/ghost-blog-returning-images-via-http-instead-of-https/9582/2 "2019-10-18T05:00:31Z")

</div>

The images seem to be loading over HTTPS for me. Did you manage to figure out what the problem was? Maybe it’s just your browser cache?

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [October 18, 2019, 1:06pm UTC](https://forum.ghost.org/t/ghost-blog-returning-images-via-http-instead-of-https/9582/3 "2019-10-18T13:06:22Z")

</div>

Your site url is configured to be `http://webfives.com`. If you’re using SSL, your site url _must_ be configured with it (run `ghost config set url https://webfives.com`)

---

<div class="post-metadata">

**Author:** ![anuragp](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/anuragp/32/4774_2.png) [@anuragp](https://forum.ghost.org/u/anuragp)\
**Post date:** [October 18, 2019, 7:40pm UTC](https://forum.ghost.org/t/ghost-blog-returning-images-via-http-instead-of-https/9582/4 "2019-10-18T19:40:29Z")

</div>

The website is hosted on Google Cloud Platform (GCP) and this was my previous (non-working setup):  
website =\> Load Balancer w/SSL (managed SSL by GCP) =\> instance/s  
Nameserver hosted on CloudFlare with SSL turned off.  
Site url configured as: [http://webfives.com](http://webfives.com)  
Site url (SSL) configured as: [https://webfives.com](https://webfives.com)

The above setup resulted in images in my posts loaded as http.

Fix:  
website =\> Load Balancer ( **no SSL cert** on the loadbalancer) =\> instance/s  
Nameserver hosted on CloudFlare with SSL turned **ON**.  
Site url configured as: [http://webfives.com](http://webfives.com)  
Site url (SSL) configured as: [https://webfives.com](https://webfives.com)

The above setup works. I imagine the issue is related to routing between LB with SSL vs LB without SSL and Cloudflare managing the cert.

---

<div class="post-metadata">

**Author:** ![winters-brown](https://avatars.discourse-cdn.com/v4/letter/w/ee59a6/32.png) [@winters-brown](https://forum.ghost.org/u/winters-brown)\
**Post date:** [May 7, 2020, 4:49pm UTC](https://forum.ghost.org/t/ghost-blog-returning-images-via-http-instead-of-https/9582/6 "2020-05-07T16:49:13Z")

</div>

Thanks, don’t mean to grave dig but this did help a lot with my recent issues!

---

<div class="post-metadata">

**Author:** ![iamjeffrey](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/iamjeffrey/32/8311_2.png) [@iamjeffrey](https://forum.ghost.org/u/iamjeffrey)\
**Post date:** [July 2, 2020, 8:05pm UTC](https://forum.ghost.org/t/ghost-blog-returning-images-via-http-instead-of-https/9582/7 "2020-07-02T20:05:08Z")

</div>

i solved my problem as well by changing cloudflare to force SSL on my domain. that did the trick. thanks!

---

<div class="post-metadata">

**Author:** ![KonTheCat](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/konthecat/32/9612_2.png) [@KonTheCat](https://forum.ghost.org/u/KonTheCat)\
**Post date:** [September 11, 2020, 2:59am UTC](https://forum.ghost.org/t/ghost-blog-returning-images-via-http-instead-of-https/9582/8 "2020-09-11T02:59:33Z")

</div>

Thank you kind internet stranger, this was my problem exactly!

---

<div class="post-metadata">

**Author:** ![Ted\_James](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ted_james/32/10754_2.png) [@Ted\_James](https://forum.ghost.org/u/Ted_James)\
**Post date:** [December 12, 2020, 7:17am UTC](https://forum.ghost.org/t/ghost-blog-returning-images-via-http-instead-of-https/9582/9 "2020-12-12T07:17:05Z")

</div>

Thank you for the fix. After setting the URL as you mentioned here, the issue was not fixed. However, the site URL was changed to HTTPS, not image URL’s. According to this guide [https://errorsfixing.com/ghost-blog-showing-images-in-http-instead-of-https/](https://errorsfixing.com/ghost-blog-showing-images-in-http-instead-of-https/) you will need to restart ghost after changing the site URL. Also, I got 502 errors after restarting Ghost. Then I manually started the ghost server as mentioned in the guide and now it is working 100% perfectly!

---

<div class="post-metadata">

**Author:** ![azfarahmed](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/azfarahmed/32/18038_2.png) [@azfarahmed](https://forum.ghost.org/u/azfarahmed)\
**Post date:** [June 2, 2022, 12:26pm UTC](https://forum.ghost.org/t/ghost-blog-returning-images-via-http-instead-of-https/9582/10 "2022-06-02T12:26:44Z")

</div>

Thnx… @Ted_James worked like charm 😄
