I have an Apache httpd web server and like to monitor my website's access_log files. I've noticed that I only ever see IPv4 addresses there. My personal computer has an IPv6 address, but this never shows in my access_log, it is always changed into an IPv4 address somehow. Why is that? Is there a way to change that?
As @dan hinted, your problem is probably not related to logging, as Apache would cheerfully also log IPv6 addresses... if someone connects to it over IPv6.
So you will first need to double check that your server is indeed listening on an IPv6 and is reachable from outside.
For that, you may need the
Try locally by going to
http://[::1]/, this is the IPv6 localhost, the server itself. Or use the server public IPv6 address. If you do not get a reply at all this means your Apache is not listening on this IP address. But if it does, you should see the IPv6 address in the logfiles.