Linux – Apache File does not exist but all links work

apache-2.2linux

I have thousands of "File does not exist" in the apache error logs. The strange thing is that the referer is my website and when you view the source code there is no URL request for /images.

What could be causing this?

[Sun Aug 28 03:15:31 2011] [error] [client 2.219.154.210] File does not exist: /var/www/oneclickrecruitment/public/jobs, referer: http://www.oneclickrecruitment.co.uk/jobs/construction-and-skilled-trades/electricians-and-part-qualified-electricians/
[Sun Aug 28 04:06:28 2011] [error] [client 207.46.12.121] File does not exist: /var/www/oneclickrecruitment/public/images, referer: http://www.oneclickrecruitment.co.uk/employers

The big problem here is that I have fail2ban setup with apache-noscript which means that innocent users are getting blocked for just viewing the website.

EDIT: I am still getting the above errors for every visit. Thus the reason for the bounty for helping me solve this problem please.

<VirtualHost *:80>
    ServerName oneclickrecruitment.co.uk
    ServerAlias www.oneclickrecruitment.co.uk www.oneclickrecruitment.com www.1clickrecruitment.co.uk www.1clickrecruitment.com
    DocumentRoot /var/www/oneclickrecruitment/public

    ErrorLog /var/log/apache2/oneclickrecruitment-error.log
    LogLevel warn
    CustomLog /var/log/apache2/oneclickrecruitment-access.log combined
</VirtualHost>

# Redirect for non existent subdomains
<VirtualHost *:80>
    ServerAlias *.oneclickrecruitment.co.uk *.oneclickrecruitment.com *.1clickrecruitment.co.uk *.1clickrecruitment.com
    Redirect 301 / http://www.oneclickrecruitment.co.uk
</VirtualHost>

Best Answer

I was looking through some of your pages and came across a 404 that might be relevant.

It is in your HTML Header:

<link rel="apple-touch-icon" href="/webapp/templates/default/images/apple-icon.png" />

I wonder if that is what is mapping to /var/www/oneclickrecruitment/public/images

I looked at the first page for the .../public/jobs error and I didn't see any errors for media in that directory. I'll try to keep looking for it.