Images loaded but not displaying


#1

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

please suggest me how to fix this ?

Regards
skorpinok

Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,268312,268312#msg-268312


#2

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


#3

nginx mailing list
removed_email_address@domain.invalid
http://mailman.nginx.org/mailman/listinfo/nginx


#4

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

  • is
    the right way

Regards
skorpinok

Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,268312,268314#msg-268314