lighttpd fails to start on Jail.

Before www/apache24 was running on this jail. Removed it and restarted the jail after installing www/lighttpd

Code:
root@http52:~ # service lighttpd start
Starting lighttpd.
2016-03-06 07:24:16: (network.c.250) socket failed: Protocol not supported
/usr/local/etc/rc.d/lighttpd: WARNING: failed to start lighttpd

Snippets from the configuration /usr/local/etc/lighttpd/lighttpd.conf:

Code:
server.bind = "192.168.56.52"

var.home_dir  = "/var/spool/lighttpd
var.socket_dir  = home_dir + "/sockets"

# IPv4 listening socket
$SERVER["socket"] == "192.168.56.52:80" { }

I created the sockets directory manually:

Code:
mkdir -p /var/spool/lighttpd/sockets/
chown www:www /var/spool/lighttpd/sockets/

What could be going wrong?
 
Thanks!

I had to set that to disable.

Code:
server.use-ipv6 = "disable"

But I thought Jails had support for IPv6, so because there was no IPv6 address assigned to jail it failed to start?
 
But I thought Jails had support for IPv6, so because there was no IPv6 address assigned to jail it failed to start?
Jails have support for IPv6 but do need to have an IPv6 addresses assigned to it. A 'regular" host will always be able to bind to ::1 if no external addresses are defined. A jail however doesn't have a lo0 and therefor there's no ::1 (or 127.0.0.1) to bind to.
 
Back
Top