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-unsubscr...@httpd.apache.org
" from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org