Apache in FreeBSD Jail Error
In one of my FreeBSD 6.2 jails running Apache, even though the server seemed to respond ok, I saw lots of these errors in the logfile:
[warn] (61)Connection refused: connect to listener on 0.0.0.0:443
Google searching found lots of other people asking about this, but I didn't really see any good answers. Others complained about the same thing on port 80
[warn] (61)Connection refused: connect to listener on 0.0.0.0:80
I think the problem is just that Apache in a jail can't listen to :443 or 0.0.0.0:443 (or :80 or 0.0.0.0:80). If your jail has the IP 1.2.3.4
for example, then in httpd.conf
, changing
Listen 80
to
Listen 1.2.3.4:80
and/or in extra/httpd-ssl.conf
Listen 443
to
Listen 1.2.3.4:443
Seems to fix the problem