On a machine with IPv6 only (no IPv4 build into kernel/userland) apache does not start. The issue and possible fix was reported on the FreeBSD Apache mailing list. http://lists.freebsd.org/pipermail/freebsd-apache/2012-August/002836.html --- ./server/config.c.orig 2010-10-07 18:56:54.000000000 +0200 +++ ./server/config.c 2012-09-03 21:23:31.000000000 +0200 @@ -1979,6 +1979,9 @@ /* NOT virtual host; don't match any real network interface */ rv = apr_sockaddr_info_get(&s->addrs->host_addr, NULL, APR_INET, 0, 0, p); + if (rv != APR_SUCCESS) + rv = apr_sockaddr_info_get(&s->addrs->host_addr, + NULL, APR_INET6, 0, 0, p); ap_assert(rv == APR_SUCCESS); /* otherwise: bug or no storage */ s->addrs->host_port = 0; /* matches any port */
Created attachment 29328 [details] Patch which allows apache22/24 to build and work on IPv4 and IPv6 only systems check for APR_HAVE_IPV6