You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Melanie Pfefer <me...@yahoo.co.uk> on 2009/09/15 11:25:11 UTC

[users@httpd] images not displayed

Hi

I would like to get our opinion on a strange behavior on my website.

I have a web application running on apache. The images displas normally if I try to access pages via http://localhost.

On a remote machine, http://machine_name works fine but images are not displayed.

any idea what  could be the cause?

thanks


      

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] images not displayed

Posted by André Warnier <aw...@ice-sa.com>.
Melanie Pfefer wrote:
> Hi
> 
> I would like to get our opinion on a strange behavior on my website.
> 
> I have a web application running on apache. The images displas normally if I try to access pages via http://localhost.
> 
> On a remote machine, http://machine_name works fine but images are not displayed.
> 
> any idea what  could be the cause?
> 
I can imagine several scenarios, but taking into account who is asking 
the question, my first guess would be :
your pages have embedded image links like :
<img src="http://localhost/images/one.gif" />

If you just replace them by links like this :
<img src="/images/one.gif" />
it will probably start working (and keep working for localhost too).

A Belgian proverb says :
Give someone a stolen fish, and he will eat today.
Teach him how to steal a fish, and he will eat every day.

According to that precept, a suggestion :
To debug this kind of issue, a useful tool is a browser add-on like 
HttpFox (for Firefox) or Fiddler2 (for IE).
Install this add-on/plugin in your browser, activate it, and request one 
of your pages.  In the plugin window, it will then show you every 
request that the browser makes to the server(s), which correspond to the 
links in your pages.  And it will show you the result of each request 
too. This should show you the root of the problem.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org