[Bug 633981] [NEW] apache2 doens't listen on ::1 when there is no routable IPv6 address

Loïc Minier lool at dooz.org
Thu Sep 9 13:24:18 BST 2010


Public bug reported:

Binary package hint: apache2

Hi

I created a lucid vm on a lucid host (with routable IPv6, but that's
irrelevant) with vm-builder and installed apache2, then added a
virtualhost configuration.

>From a job on that same vm, I'm doing "wget
http://$hostname.$domainname/somefile" which should download a file via
apache2.

This first fails with IPv6 then succeeds with IPv4:
+ wget -O .config http://somehost.example.com/somefile
--2010-09-09 12:45:21--  http://somehost.example.com/somefile
Resolving somehost.example.com... ::1, 127.0.1.1
Connecting to somehost.example.com|::1|:80... failed: Connection refused.
Connecting to somehost.example.com|127.0.1.1|:80... connected.
HTTP request sent, awaiting response... 200 OK

I checked with netstat, and apache2 does NOT listen on port 80 for IPv6
connections, only for IPv4.  Another http server (java based) on the
same host DOES listen on both and works fine with a similar wget test.

I added a routable IPv6 address with something like:
sudo ip addr add 2a01:e35:xxxx:xxxxxxxx/64 dev eth0
(even if it's actually not routed)
restarted apache2, and wget / w3m would be able to connect to http://ip6-localhost.

I removed the address with ip addr del, restarted apache2, and wget/w3m
didn't work anymore, apache2 wasn't listening anymore.

It seems apache2 or possibly eglibc change behavior depending on whether
there is a routable IPv6 address, and apache2 doesn't consider listening
on ::1 which is a bug preventing local ipv6 traffic.

Thanks,

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: apache2 2.2.14-5ubuntu8
ProcVersionSignature: Ubuntu 2.6.32-24.42-server 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-server x86_64
Architecture: amd64
Date: Thu Sep  9 14:14:13 2010
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: apache2

** Affects: apache2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug lucid

-- 
apache2 doens't listen on ::1 when there is no routable IPv6 address
https://bugs.launchpad.net/bugs/633981
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in ubuntu.



More information about the Ubuntu-server-bugs mailing list