Apache2 has trouble handling (ip6-)localhost
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
Incomplete
|
Low
|
Unassigned |
Bug Description
Binary package hint: apache2
This problem is related to running Apache2 in Intrepid.
At my workstation at home I like to tell Apache to "Listen localhost:80"
(This I do in ports.conf)
In Intrepid that results in the following error
root@hawat:~# /etc/init.d/apache2 restart
* Restarting web server apache2
... waiting (98)Address already in use: make_sock: could not bind to address 127.0.0.1:80
no listening sockets available, shutting down
Unable to open logs
This error don't happen if I instead use "Listen 127.0.0.1:80".
It seems as if Apache's problems are related to how the default /etc/hosts in Intrepid defines ::1
In Hardy /etc/hosts says
::1 ip6-localhost ip6-loopback
In Intrepid it is instead
::1 localhost ip6-localhost ip6-loopback
If I change my /etc/hosts back to Hardy-style (::1 ip6-localhost ip6-loopback) I can use "Listen localhost:80" in Apache
without any problems.
A default intrepid hosts files looks like:
::1 ip6-localhost ip6-loopback
I cannot reproduce your issue. How did you install the intrepid system?