Shutting Apache Up in a FreeBSD Jail
If you’ve run Apache in a FreeBSD jail, you’ve probably seen the following error messages in your error log:
(61)Connection refused: connect to listener on 0.0.0.0:80
(61)Connection refused: connect to listener on 0.0.0.0:80
It turns out that if you specify the Listen directive in one of the following ways:
Listen 80
Listen *:80
Listen 0.0.0.0:80
it complains about connecting to the listener as previously mentioned. To make these errors disappear from the logs, all you have to do is specify the IP address of the jail like so:
Listen jail.ip.address.here:80
and it goes away. No more error messages filling the logs.