# Images loaded but not displaying

**URL:** <https://www.ruby-forum.com/t/images-loaded-but-not-displaying/244950>\
**Category:** NGINX\
**Created:** [July 16, 2016, 10:31am UTC](https://www.ruby-forum.com/t/images-loaded-but-not-displaying/244950 "2016-07-16T10:31:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [July 16, 2016, 10:31am UTC](https://www.ruby-forum.com/t/images-loaded-but-not-displaying/244950/1 "2016-07-16T10:31:53Z")

</div>

Hi, i have installed nginx/1.2.1 on a debian 7 server, the image seems  
to  
have been loaded but shows broken & are not displayed on my index.html  
page

here is what did,

html\>

Welcome to nginx!
# Welcome to nginx!

![infographic](https://www.ruby-forum.com/usr/share/nginx/www/images/infographic.jpg)

please suggest me how to fix this ?

Regards  
skorpinok

Posted at Nginx Forum:

> **[Images loaded but not displaying](https://forum.nginx.org/read.php?2,268312,268312#msg-268312)**
>
> Hi, i have installed nginx/1.2.1 on a debian 7 server, the image seems to have been loaded but shows broken & are not displayed on my index.html page here is what did, html\> \<head\> \<title\>Welcome to nginx!\</title\> \</

---

<div class="post-metadata">

**Author:** ![skorpinok](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ac8455/32.png) [@skorpinok](https://www.ruby-forum.com/u/skorpinok)\
**Post date:** [July 16, 2016, 11:40am UTC](https://www.ruby-forum.com/t/images-loaded-but-not-displaying/244950/2 "2016-07-16T11:40:14Z")

</div>

Hi skorpinok

Two points:

1. Use correct HTML, or you can only blame yourself if different  
browsers mangle it each in their own way.

The structure is

 Html 5 only. page content properly nested. (eof)
1. The src url takes its root as the location of the current page  
(unless overridden with a base tag in the head area).

My guess is you need  
\<img src="/images/infographic.jpg" …

Regards

Ian

---

<div class="post-metadata">

**Author:** ![skorpinok](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ac8455/32.png) [@skorpinok](https://www.ruby-forum.com/u/skorpinok)\
**Post date:** [July 16, 2016, 5:30pm UTC](https://www.ruby-forum.com/t/images-loaded-but-not-displaying/244950/3 "2016-07-16T17:30:08Z")

</div>

* * *

nginx mailing list  
removed\_email\_address@domain.invalid  
[http://mailman.nginx.org/mailman/listinfo/nginx](http://mailman.nginx.org/mailman/listinfo/nginx)

---

<div class="post-metadata">

**Author:** ![skorpinok](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ac8455/32.png) [@skorpinok](https://www.ruby-forum.com/u/skorpinok)\
**Post date:** [July 16, 2016, 11:57am UTC](https://www.ruby-forum.com/t/images-loaded-but-not-displaying/244950/4 "2016-07-16T11:57:10Z")

</div>

Hi, Ian H., thanks its fixed, \<img src=“/images/infographic.jpg”

- is  
the right way

Regards  
skorpinok

Posted at Nginx Forum:

> **[Re: Images loaded but not displaying](https://forum.nginx.org/read.php?2,268312,268314#msg-268314)**
>
> Hi, i have installed nginx/1.2.1 on a debian 7 server, the image seems to have been loaded but shows broken & are not displayed on my index.html page here is what did, html\> \<head\> \<title\>Welcome to nginx!\</title\> \</
