Question

ah00558 due to IP6 setup

Posted June 30, 2021 107 views
ApacheConfiguration Management

Your article allowed me to successfully overcome this configerror.
FYinfo I'ld like to draw your attention to the UBUNTU etc/hosts -file

The error message pointed to IPaddr 127.0.1.1

my host file looks like this

#----------------------- copy of local file
# current hosts file 
127.0.0.1   localhost
127.0.1.1   mycomputername  #  ip6 loopback


# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters  
#----------------------- end of copy of local file

according to [https://techpiezo.com/linux/etc-hosts-hosts-file-in-ubuntu-distribution/] 127.0.1.1 is a fully qualified domain name (FQDN) of the machine we are working on, and it is also for our localhost (needed for IPv6 capable hosts).

Using the above solution points Apache back to the IP4 local host

that raises the question : why doesn’t Apache2 understand the IP6 loopback entry as equivalent to the IP4 localhost entry and why does it by default look to the IP6 entry and ignores the IP4 entry, whereas the IP4 entry ?

edited by MattIPv4
Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!