apache2 does not listen on ipv6 at all when there is no routable IPv6 address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eglibc (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
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://
This first fails with IPv6 then succeeds with IPv4:
+ wget -O .config http://
--2010-09-09 12:45:21-- http://
Resolving somehost.
Connecting to somehost.
Connecting to somehost.
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:
(even if it's actually not routed)
restarted apache2, and wget / w3m would be able to connect to http://
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
ProcVersionSign
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
summary: |
- apache2 doens't listen on ::1 when there is no routable IPv6 address + apache2 does not listen on ipv6 at all when there is no routable IPv6 + address |
affects: | apache2 (Ubuntu) → eglibc (Ubuntu) |
Loic,
Thank you for reporting this. Do you know if this is specific to Ubuntu? Have you tried it on other distros? I will look for an upstream bug in the meantime.
Darran