Failed to enable the ‘httpready’ Accept Filter

在 FreeBSD 6.2-RELEASE 上从 ports 安装 apache22(/usr/ports/www/apache22),在 /etc/rc.conf 加入 apache22_enable="YES" 后,启动 apache,报下面的警告:
# apachectl start
httpd not running, trying to start
[Wed Sep 12 21:27:30 2007] [warn] (2)No such file or directory: Failed to enable the ‘httpready’ Accept Filter

要解决这个问题,只需
# kldload accf_http

并在 /boot/loader.conf 加入下面两行,以便下次启动自动装载模块:
accf_data_load="YES"
accf_http_load="YES"

这两条设置其实是覆盖了在 /boot/defaults/loader.conf 中的这两个同名选项:
# cat /boot/defaults/loader.conf | grep accf
accf_data_load="NO" # Wait for data accept filter
accf_http_load="NO" # Wait for full HTTP request accept filter

—————- 清晰明朗的分割线 —————-
其实这个问题我早解决了,今天写出来省得下次遇到再找。

#apache-http-server, #freebsd