The problem. My server's logfiles are full of:
[Fri Jun 10 13:58:22 2011] [error] [client ***] File does not exist: /var/www/mydomain/start/images, referer: http://www.mydomain.com/start/
There are 2 things what I don't understand:
1. I can not understand what causes this error because it doesn't show any filename which was not found. It shows just "images" folder location.
All images are located in: /var/www/mydomain/images
I have searched all my files and there are no image tags without filenames: <img src="/images">
There are no image tags like this: <img src="/images/$some_value">
2. Why the path to the non-existing file is /var/www/mydomain/start/images
instead of /var/www/mydomain/images
? This may happen if image tags looks like this <img src="images/someimage.jpg">
but my image tags start with "/" and looks like this: <img src="/images/someimage.jpg">
There are not so many images in /var/www/mydomain/images because this folder contains subfolders like /var/www/mydomain/images/smilies /var/www/mydomain/images/backgrounds etc and most of images are located there. So the error should show some subfolder.
One more strange thing. This happends not to all users. Maybe only 10% of users leave leave in my logfiles entries like this. Some users leave 2-3 lines, some users - even 36. I have checked all my files and can't find files with 36 images on the same page. No users have reported problems with non-existing images.
I also found some "File does not exist" from my IP address. So, I checked the file which caused this error but all images are in place.
I also checked css files for errors. Nothing found.
Any ideas? Thanks.