# Broken images inside posts

**URL:** https://meta.discourse.org/t/broken-images-inside-posts/34951
**Category:** Support
**Created:** [October 27, 2015, 5:48am UTC](https://meta.discourse.org/t/broken-images-inside-posts/34951 "2015-10-27T05:48:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ctri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ctri/32/108253_2.png) [@ctri](https://meta.discourse.org/u/ctri)
#### Post date: [October 27, 2015, 5:48am UTC](https://meta.discourse.org/t/broken-images-inside-posts/34951/1 "2015-10-27T05:48:36Z")

</div>

Hello,

I’m trying to setup a Discourse instance (private) on a Digitalocean droplet and I’m having some problems with the uploaded images, because they are not showing in the posts.

The weird thing is that right after insert the image, when it finished to upload you can see for a second. After that, the link breaks and you can’t see it anymore. I have tried to rebuild the HTML and it didn’t work, the same thing happens: you can see the image for a second after rebuilding only. An example:

 ![](https://global.discourse-cdn.com/meta/original/3X/f/8/f840f6755e672ff96a642ad440b65aa9c7d9031e.png)

The same thing is happening with the assets uploaded to customize the look of the forum. When I upload a new logo the image is broken inside the post but, as you can see in this other screenshot, I can use it to customize the header.

 ![](https://global.discourse-cdn.com/meta/original/3X/f/a/facb0a2c02b14761a025e77d590eb6facc42f233.png)

This one is showing the **404 error** that I get for the images. I know he images are in the server because if I go to the dir:

> /var/discourse/shared/standalone/uploads/default/original/1X/

I can see every single image file there.

After some reading here in Meta about similar problems ([here](https://meta.discourse.org/t/some-links-and-avatars-show-as-broken/16594) and [here](https://meta.discourse.org/t/images-inside-the-post-is-not-visible-with-bitnami-install/30578/5)) I check my **app.yml** and the hostname line looks fine (no http:// in front of the domain name)

> DISCOURSE\_HOSTNAME: ‘[bacter.io](http://bacter.io)’

Also, I’m not sure if this can be of some relevance, I have the Discourse forum hosted in a subdomain following the instructions in this guide:

[Running other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247)

I would love if somebody can point me to the right direction (I can’t find any other related post here in Meta) so I can do some further investigation and solve the problem.

Thanks!

Tested in Chromium and Firefox on LInux and Firefox on Android.  
Discourse version (Docker install): 1.5.0.beta 3 +46

* * *

P.S: I hope you can excuse the possible grammar mistakes in my post, english is not my first language.

---

<div class="post-metadata">

### Author: ![KazWolfe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kazwolfe/32/64441_2.png) [@KazWolfe](https://meta.discourse.org/u/KazWolfe)
#### Post date: [October 27, 2015, 5:53am UTC](https://meta.discourse.org/t/broken-images-inside-posts/34951/2 "2015-10-27T05:53:44Z")

</div>

Just because of curiosity:

- Are you sure that you’re using the forum’s subdomain as the `DISCOURSE_HOSTNAME`?
- Are you sure you’re not hosting the forums over HTTPS?

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [October 27, 2015, 6:22am UTC](https://meta.discourse.org/t/broken-images-inside-posts/34951/3 "2015-10-27T06:22:38Z")

</div>

Is `http://bacter.io/t/assets-for-the-site-design/1234` the address that you loaded the page over?

---

<div class="post-metadata">

### Author: ![ctri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ctri/32/108253_2.png) [@ctri](https://meta.discourse.org/u/ctri)
#### Post date: [October 27, 2015, 6:24am UTC](https://meta.discourse.org/t/broken-images-inside-posts/34951/4 "2015-10-27T06:24:26Z")

</div>

@KazWolfe

No HTTPS, but you were right about the missing subdomain in DISCOURSE HOSTNAME.

Changed it, rebuild the app and rebuild the HTML for each one of the missing images and now works fine (obviously)

I leave this here as a testament of my stupidity and hoping it can helps somebody else.

Thanks!

@riking : Solved, but thanks for your interest.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [October 27, 2015, 6:43am UTC](https://meta.discourse.org/t/broken-images-inside-posts/34951/5 "2015-10-27T06:43:20Z")

</div>


