Situation:
VPS with Apache, multiple websites.
Document root is /var/www/html
but nothing can be found there because the files of the websites are found in /domains/mywebsite.com/public_html/
Problem: I'm getting "file does not exist" errors in the Apache error log and they are always related to clients with an IPv6 address. No errors are shown with an IPv4 (except for the regular hack's on pages that don't exist on my VPS). The files that can't be found are most of the times existing webpages on one of my websites.
Analysis: I have visited my own webpages with a web browser that the errors are referring to but no problems occur and no extra error log in my Apache error log while I'm visiting those pages (and I use a IPv4 address).
Example 1:
[client ---IPv6 address---] file does not exist: /var/www/html/specificwebpage, referrer: https://www.google.be/
The "specific webpage" is one of my webpages of one of my sites (and is rewritten by .htaccess to specificwebpage.php).
Example 2:
[client ---IPv6 address---] file does not exist: /var/www/html/css, referrer: http://mywebsite.com/subdirectory/
When I visit this webpage (its rewritten by .htaccess
to subdirectory/index.php
) then there are no error seen in my browser and no extra error log line in the Apache log.