lighttpd in a jail says address is already in use (its not)
Vincent Hoffman
vince at unsane.co.uk
Tue Mar 23 17:21:16 UTC 2010
Hi all,
I'm hoping i'm doing something silly. I have an 8.0-RELEASE
machine with one jail that i'm intending to run lighttpd.
I have nothing running on the host other than sendmail on 127.0.0.1 and
sshd bound to the primary IP. The jail is also now running sshd fine.
when i try and start lighttpd i get
Starting lighttpd.
2010-03-23 17:13:35: (network.c.345) can't bind to port: 192.168.10.221
80 Address already in use
/usr/local/etc/rc.d/lighttpd: WARNING: failed to start lighttpd
however
[root at krill /usr/ports/www/lighttpd]# netstat -an
netstat: kvm not available: /dev/mem: No such file or directory
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp4 0 0 192.168.10.221.25 *.* LISTEN
tcp4 0 0 192.168.10.221.22 *.* LISTEN
udp4 0 0 192.168.10.221.514 *.*
and i can make nc listen on port 80 using
nc -l 192.168.10.221 80
and make connections to it from remote
vincenthoffman at macbook
(17:18:13 <~>) 130 $ telnet 192.168.10.221 80
Trying 192.168.10.221...
Connected to jail.home.unsane.co.uk.
Escape character is '^]'.
So the port definitely isnt in use.
Any suggestions if there is a sysctl or anything i need to change to get
this to work?
Vince
More information about the freebsd-questions
mailing list