[SOLVED] Apache: ‘[error] [client ::XXX] File does not exist:’

I just noticed my apache.err file was throwing tons of errors like the following:

[error] [client 67.195.37.164] File does not exist: /soft/cds-invenio/var/www/incunables

I did not know which was causing this error because everything seemed to be working fine. I searched the FAQ, read the Documentation, even tried to search both my website (which generated errors) and tried a google search or two to see if I could find anything related to this issue. No such luck.

I went through /etc/httpd/conf/httpd.conf and other config files but I could not find where there was any reference to /incunables. Weird. Then I figured it out:

My VirtualHosts (invenio-apache-vhost.conf) were defined like:

1
2
3
4
5
6
7
8
9
10
11
12
AddDefaultCharset UTF-8
ServerSignature Off
ServerTokens Prod
NameVirtualHost *:80
<Files *.pyc>
   deny from all
</Files>
<Files *~>
   deny from all
</Files>
<VirtualHost *:80>
# blablabla... a lot of not-related stuff here

By now you should have guessed the error had to be with lines 4 and 11. That *:80 was responsible for the errors. Now I changed those lines to:

NameVirtualHost 155.210.5.35:80
# blablabla
<VirtualHost 155.210.5.35:80>
#blablabla

Then just restart your apache server:

/etc/init.d/httpd restart

And, at last, got rid of those errors :-)

*** TIP for CDS Invenio users:
You should also change these values in /lib/python/invenio/inveniocfg.py
And then run:

inveniocfg --update-all; /etc/init.d/httpd restart

Related posts:

  1. Apache case sensitive to case insensitive and Alias [SOLVED]
  2. [RESOLVED] [error] an unknown filter was not added: PHP
  3. CDS Invenio v1.0 bibclassify exceptions when 404 error
  4. Apache server log size and log rotate configuration
  5. CDS-Invenio: bibtask error log

Leave a Reply

Paypal donate

Please help me keep this blog up by donating.

Por favor, ayúdame a continuar con el blog donando.