IPv6 Server: Webserver Apache2 (httpd2)
Revision as of 09:02, 4 July 2013 by Onnowpurbo (talk | contribs)
Apache web server mendukung IPv6 secara native oleh maintainer sejak 2.0.14.
Listening address IPv6
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.
Virtual host listen on an IPv6 address only
Listen [2001:0db8:100::1]:80 <VirtualHost [2001:0db8:100::1]:80> ServerName ipv6only.yourdomain.yourtopleveldomain # ...sure more config lines </VirtualHost>
Virtual host listen on an IPv6 and on an IPv4 address
Listen [2001:0db8:100::2]:80 Listen 1.2.3.4:80 <VirtualHost [2001:0db8:100::2]:80 1.2.3.4:80> ServerName ipv6andipv4.yourdomain.yourtopleveldomain # ...sure more config lines </VirtualHost>
This should result after restart in e.g.
# netstat -lnptu |grep "httpd2\W*$" tcp 0 0 1.2.3.4: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.
Tambahan Catatan
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.