IPv6 only errors in logfile

gemarnium

New member
Joined
Jul 10, 2014
Messages
2
Situation:
VPS server with multiple domains (CentOs 6.5 64 bit, DirectAdmin).
VPS has an IPv4 and IPv6 adresse.
The sites are working ok, when I try it myself (using IPv4), every page shows correctly (number of visitors and behaviour is ok in google analytics).
The sites are reachable by IPv6 (but I can't test only the "server is reachable based on their domainname).
In /etc/httpd/conf/httpd.conf the document root is:
DocumentRoot "/var/www/html"
This is not the directory the html pages can be found. They are in /home/domains/nameofwebsite.com/public_html

Also this is part of httpd.conf
Include conf/extra/httpd-vhost.conf
Include conf/extra/directadmin-vhost.conf (contains: include /usr/local/directadmin/data/users/admin/httpd.conf

in /usr/local/directadmin/data/users/admin/httpd.conf
I can find all the virtualhost domains including the correct DocumentRoot.
But... There is no IPv6 adress stored.

<VirtualHost 1.2.3.4:80 >
Servername ......
SernameAlias .....
...
...
</VirtualHost>

Problem:
In the apache error log I see ---only for IPv6 adresses--- "file doesn't exist error " for pages that do exist but, not at the location /var/www/html
Like:
[date---] [error] [client 2001:981:26e2:1:f8f9:ef76:50af:be81] File does not exist: /var/www/html/an-existing-page-of-one-of-the-websites
[date---] [error] [client 2001:981:26e2:1:f8f9:ef76:50af:be81] File does not exist: /var/www/html/404.shtml

Question:
Any idea why only IPv6 addresses generate file not found errors in the apache log file?
Is there a way I can tell DirectAdmin to use IPv6 address in the vhosts file?
 
First check to see whether your content is really where it should be; you wrote:
Code:
/home/domains/nameofwebsite.com/public_html
which leaves out the username; it should be:
Code:
/home/USERNAME/domains/nameofwebsite.com/public_html
I presume you just made a typo, but it's worth asking.

Presuming this is write the most likely possible error is that the IP# you're pointing to is not properly assigned to the site.

Other than that I won't be of much help because I don't yet use IPv6, but once you determine that the IPv6 assignments are correct and that the IPv6#s are represented, then check the user-level httpd.conf files in /usr/local/directadmin/data/users/USERNAME have the correct IPv6 assignments.

Jeff
 
Back
Top