[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#391280: apache2-mpm-prefork: doesn't bind to IPv4 socket when IPv6 enabled



From apache docs [1]:

"On the other hand, on some platforms such as Linux and Tru64 the only
way to handle both IPv6 and IPv4 is to use mapped addresses."
Mapping is default on Linux (in contrary to FreeBSD, NetBSD, and
OpenBSD). 

That's why you don't see two sockets.

Here comes the test:

xen2:~# grep ^Listen /etc/apache2/ports.conf
Listen 0.0.0.0:80
Listen [::]:80
xen2:~# netstat -tulpen | grep apache

xen2:~# netstat -ntlp| grep apache
tcp6	0	0 :::80	:::*	LISTEN	2505/apache2

xen2:~# wget -S -O /dev/null --inet6-only http://ip6-localhost/
--11:35:24--  http://ip6-localhost/
           => `/dev/null'
Resolving ip6-localhost... ::1
Connecting to ip6-localhost|::1|:80... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 200 OK
...

xen2:~# wget -S -O /dev/null --inet4-only http://localhost/
--11:36:26--  http://localhost/
           => `/dev/null'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 200 OK
...

This bug may be closed.

[1] http://httpd.apache.org/docs/2.2/bind.html
-- 
Kind Regards,
 Michael Mende

http://www.menole.net/

Attachment: signature.asc
Description: Digital signature


Reply to: