Announcement

Collapse
No announcement yet.

Apache2 does not serve image files

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Apache2 does not serve image files

    I have set up my Kubuntu system as a web server with apache2, php5 and mysql. I only use it on my home local ethernet LAN. My wife runs Windows 7 on her computer. Before, when she had Windows/XP, she could view files on my server with no trouble. Now, the server refuses to serve image files. You can go into a directory and see the list of, say, jpg files, but when you click on one, it never arrives. Html files are properly displayed. Permissions are the same on all files: -rw--r--r--

    I explain all this as I am not certain whether this is a Windows 7 problem or a Linux one.

    Any ideas, anyone?
    'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

    #2
    Re: Web server will not serve image files

    I just booted Kubuntu on my wife's computer. Same result. So it is not Windows.

    I also tried setting universal permissions:

    chmod 777 *

    Same result.
    'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

    Comment


      #3
      Re: Web server will not serve image files

      I also checked my apache log files in /var/log/apache2. In error.log, I see only

      [Mon Aug 16 10:40:51 2010] [error] [client 192.168.1.12] File does not exist: /var/www/favicon.ico
      [Mon Aug 16 10:40:54 2010] [error] [client 192.168.1.12] File does not exist: /var/www/sjoneall_net/www/css/img, referer: http://john-linux/sjoneall_net/www/css/jd.gallery.css
      [Mon Aug 16 10:40:54 2010] [error] [client 192.168.1.12] File does not exist: /var/www/sjoneall_net/www/css/img, referer: http://john-linux/sjoneall_net/www/css/jd.gallery.css
      [Mon Aug 16 10:40:54 2010] [error] [client 192.168.1.12] File does not exist: /var/www/sjoneall_net/www/css/img, referer: http://john-linux/sjoneall_net/www/css/jd.gallery.css
      [Mon Aug 16 10:41:29 2010] [error] [client 192.168.1.12] File does not exist: /var/www/favicon.ico

      I am missing far more files than a favicon. In access.log, I see a lot of entries like

      192.168.1.12 - - [16/Aug/2010:10:42:02 +0200] "GET /sjoneall_net/www/india_2009/mumbai/in09_102415300_j_s.jpg HTTP/1.1" 200 64976 "http://john-linux/sjoneall_net/www/i...i/mumbai.html" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8"

      These would be the Windows machine trying to access the images, but I have no idea what that line means. But it is certainly related to my problem.


      'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

      Comment

      Working...
      X