Bin schon wieder über das Problem gestolpert. Mein Wheezy-Server:
Code: Alles auswählen
root@uberhost:~# netstat -tulpen | grep apache
tcp6 0 0 :::80 :::* LISTEN 0 61453048 558/apache2
tcp6 0 0 :::443 :::* LISTEN 0 61453052 558/apache2
Naja, eventuell sieht es ja mit Jessie (testing) besser aus:
Code: Alles auswählen
root@teclap:~# netstat -tulpen | grep apache
tcp6 0 0 :::80 :::* LISTEN 0 8145 2445/apache2
Der Apache liefert aber an IPv4 auf Port 80 aus und horcht:
Code: Alles auswählen
root@teclap:~# lynx -dump http://127.0.0.1/
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
Liegt es also nicht am Apache, sondern an netstat? Mal sehen was lsof sagt:
Code: Alles auswählen
root@uberhost:~# lsof -n | grep ^apache2 | grep IP
apache2 558 root 4u IPv6 61453048 0t0 TCP *:http (LISTEN)
apache2 558 root 6u IPv6 61453052 0t0 TCP *:https (LISTEN)
apache2 18372 www-data 4u IPv6 61453048 0t0 TCP *:http (LISTEN)
apache2 18372 www-data 6u IPv6 61453052 0t0 TCP *:https (LISTEN)
apache2 18373 www-data 4u IPv6 61453048 0t0 TCP *:http (LISTEN)
apache2 18373 www-data 6u IPv6 61453052 0t0 TCP *:https (LISTEN)
apache2 18374 www-data 4u IPv6 61453048 0t0 TCP *:http (LISTEN)
apache2 18374 www-data 6u IPv6 61453052 0t0 TCP *:https (LISTEN)
apache2 18375 www-data 4u IPv6 61453048 0t0 TCP *:http (LISTEN)
apache2 18375 www-data 6u IPv6 61453052 0t0 TCP *:https (LISTEN)
apache2 18376 www-data 4u IPv6 61453048 0t0 TCP *:http (LISTEN)
apache2 18376 www-data 6u IPv6 61453052 0t0 TCP *:https (LISTEN)
apache2 18527 www-data 4u IPv6 61453048 0t0 TCP *:http (LISTEN)
apache2 18527 www-data 6u IPv6 61453052 0t0 TCP *:https (LISTEN)
apache2 20858 www-data 4u IPv6 61453048 0t0 TCP *:http (LISTEN)
apache2 20858 www-data 6u IPv6 61453052 0t0 TCP *:https (LISTEN)
Irgendwas ist doch da kaputt, der Apache horcht auf IPv4, Port 80, alle Adressen, aber es wird nicht angezeigt. Der oben genannte Link erklärt das nicht.
Gucke ich bei einem anderen Prozess, sagen wir mal Dovecot, sieht es aus wie man es erwarten würde:
Code: Alles auswählen
root@uberhost:~# lsof -n | grep ^dovecot | grep IP
dovecot 3296 root 22u IPv4 70601635 0t0 TCP *:pop3 (LISTEN)
dovecot 3296 root 23u IPv6 70601636 0t0 TCP *:pop3 (LISTEN)
dovecot 3296 root 24u IPv4 70601637 0t0 TCP *:pop3s (LISTEN)
dovecot 3296 root 25u IPv6 70601638 0t0 TCP *:pop3s (LISTEN)
dovecot 3296 root 32u IPv4 70601659 0t0 TCP *:imap2 (LISTEN)
dovecot 3296 root 33u IPv6 70601660 0t0 TCP *:imap2 (LISTEN)
dovecot 3296 root 34u IPv4 70601661 0t0 TCP *:imaps (LISTEN)
dovecot 3296 root 35u IPv6 70601662 0t0 TCP *:imaps (LISTEN)