The Apache web server has had Internet Protocol version 6 (IPv6) support built in and enabled by default since 2002 (with the release of version 2.0.43). The authoritative source for Apache Web Server is the Apache HTTP Server Project, which does not explicitly address many IPv6 topics. It does address Special IPv6 Considerations for mapping IPv4 and IPv6 addresses.
Complete the 8 steps described in this Get Your Site Ready for IPv6 article for the host computer your Apache web server is or will be installed on.
The configuration information shown below is from the Linux IPv6 HOWTO (en) website. While old, it is still useful. Additional old articles about Apache web server IPv6 configuration for Linux and virtual hosts are available here.
3. Webserver Apache2 (httpd2)
Apache web server supports IPv6 native by maintainers since 2.0.14. Available patches for the older 1.3.x series are not current and shouldn't be used in public environment, but available at KAME/Misc.
3.1. Listening on IPv6 addresses
Note: virtual hosts on IPv6 addresses are broken in versions until 2.0.28 (a patch is available for 2.0.28). But always try latest available version first because earlier versions had some security issues.
3.1.1. Virtual host listen on an IPv6 address only
ServerName ipv6only.yourdomain.yourtopleveldomain # ...sure more config lines
3.1.2. Virtual host listen on an IPv6 and on an IPv4 address
<VirtualHost [2001:0db8:100::2]:80 184.108.40.206:80>
# ...sure more config lines
This should result after restart in e.g.
# netstat -lnptu |grep "httpd2\W*$" tcp 0 0 220.127.116.11:80 0.0.0.0:* LISTEN 12345/httpd2
tcp 0 0 2001:0db8:100::1:80 :::* LISTEN 12345/httpd2
tcp 0 0 2001:0db8:100::2:80 :::* LISTEN 12345/httpd2
For simple tests use the telnet example already shown.
3.1.3. Additional notes
· Apache2 supports a method called “sendfile” to speedup serving data. Some NIC drivers also support offline checksumming. In some cases, this can lead to connection problems and invalid TCP checksums. In this cases, disable “sendfile” either by recompiling using configure option “--without-sendfile” or by using the "EnableSendfile off" directive in configuration file.