My Question: Does anybody know why an apache2 server can act as an iperf server? I thought that an apache2 server does only answer HTTP requests.
My Situation: I accidentally realized that an apache2 server can act as a iperf server when connecting an iperf client to port 80.
My setup: Two Ubuntu Server 14.03 directly connected to each other.
Commands:
On Server1:
user@server1:~$ sudo service apache2 status
* apache2 is running
user@server1:~$ sudo netstat -aple | grep http
tcp6 0 0 [::]:http [::]:* LISTEN root 18567325 21985/apache2
user@server1:~$
and on the other side:
On Server2:
user@server2:~$ iperf -c 192.168.2.2 -p 80
------------------------------------------------------------
Client connecting to 192.168.2.2, TCP port 80
TCP window size: 45.0 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.2.3 port 60267 connected with 192.168.2.2 port 80
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 29.1 MBytes 24.4 Mbits/sec
user@server2:~$