LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-08-2008, 09:40 AM   #1
memo007
Member
 
Registered: Feb 2005
Distribution: Debian, Kanotix, Kubuntu
Posts: 117

Rep: Reputation: 15
Apache doesn't display images correctly


The images on my web server are not displayed only the link, and when i click the empty frame it transfers me to the link and to the actual image ?
I only have /var/www/page.html in the www folder.

Last edited by memo007; 09-08-2008 at 10:00 AM.
 
Old 09-08-2008, 10:47 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by memo007 View Post
The images on my web server are not displayed only the link, and when i click the empty frame it transfers me to the link and to the actual image ?
I only have /var/www/page.html in the www folder.
Ok...how about some information about your environment? What version and distro of Linux are you running? What version of Apache?

Also, how the pages are displayed, depends on how your web page is written. What are you trying to do? What's in page.html that calls the image? Does this page work on another server, or are you trying somthing new?
 
Old 09-08-2008, 11:12 AM   #3
memo007
Member
 
Registered: Feb 2005
Distribution: Debian, Kanotix, Kubuntu
Posts: 117

Original Poster
Rep: Reputation: 15
Apache version 2.2.8 with Ubuntu 8.04
I have webmin managing the server.
Basicaly when i preview it in quanta the image is there, and when i go on the website just the frame is displayed.
This is what it says "<img style="border: 2px solid ; width: 214px; height: 93px;" alt="" src="file:///var/www/ready.png"
The whole text of the website displays fine just the image thats suposse to be there is a little X in explorer or in firefox just empty.


Quote:
Originally Posted by TB0ne View Post
Ok...how about some information about your environment? What version and distro of Linux are you running? What version of Apache?

Also, how the pages are displayed, depends on how your web page is written. What are you trying to do? What's in page.html that calls the image? Does this page work on another server, or are you trying somthing new?
 
Old 09-08-2008, 12:08 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by memo007 View Post
Apache version 2.2.8 with Ubuntu 8.04
I have webmin managing the server.
Basicaly when i preview it in quanta the image is there, and when i go on the website just the frame is displayed.
This is what it says "<img style="border: 2px solid ; width: 214px; height: 93px;" alt="" src="file:///var/www/ready.png"
The whole text of the website displays fine just the image thats suposse to be there is a little X in explorer or in firefox just empty.
The error is in your html code. The src should be a path to the file name, something like:

src="/images/ready.png"

or whatever directory off of the document root you have your images stored. Calling it like you are may be the problem. If your docroot is /var/www, you should try to leave off the "file:///var/www/" part of the src argument, and just put the image name.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
screen does not display characters correctly derzok Linux - Software 1 11-03-2007 01:29 PM
getting a widescreen monitor to display correctly davidwindt Linux - Hardware 2 10-24-2006 10:02 PM
getting vb code to display correctly paul62 LQ Suggestions & Feedback 1 12-11-2005 11:19 PM
apache can not display Images ! freelinuxcpp Debian 2 07-07-2004 05:42 AM
Mozilla does not display wldcu.com correctly? comtex Red Hat 6 09-18-2003 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration