#AddHandler type-map var
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
</IfModule>
#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type. The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
#MIMEMagicFile etc/apache21/magic
#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#
#
# EnableMMAP and EnableSendfile: On systems that support it,
# memory-mapping or the sendfile syscall is used to deliver
# files. This usually improves server performance, but must
# be turned off when serving from networked-mounted
# filesystems or if support for these functions is otherwise
# broken on your system.
#
#EnableMMAP off
#EnableSendfile off
# Supplemental configuration
#
# The configuration files in the etc/apache21/extra/ directory can be
# included to add extra features or to modify the default configuration of
# the server, or you may simply copy their contents here and change as
# necessary.
# Server-pool management (MPM specific)
#Include etc/apache21/extra/httpd-mpm.conf
# Multi-language error messages
#Include etc/apache21/extra/httpd-multilang-errordoc.conf
# Fancy directory listings
#Include etc/apache21/extra/httpd-autoindex.conf
# Language settings
#Include etc/apache21/extra/httpd-languages.conf
# User home directories
#Include etc/apache21/extra/httpd-userdir.conf
# Real-time info on requests and configuration
#Include etc/apache21/extra/httpd-info.conf
# Virtual hosts
#Include etc/apache21/extra/httpd-vhosts.conf
# Local access to the Apache HTTP Server Manual
#Include etc/apache21/extra/httpd-manual.conf
# Distributed authoring and versioning (WebDAV)
#Include etc/apache21/extra/httpd-dav.conf
# Various default settings
#Include etc/apache21/extra/httpd-default.conf
# Secure (SSL/TLS) connections
#Include etc/apache21/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
# starting without SSL on platforms with no /dev/random equivalent
# but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
Include etc/apache21/Includes/*.conf
[warn] (2)No such file or directory:
Failed to enable the ‘httpready’ Accept Filter
The resolution to the above problem is to a accf_http module, which function is to buffer incoming connections until a certain complete HTTP requests arrive, into FreeBSD kernel by using kernel linker:
kldload accf_http
To permanently load enable HTTP Accept Filter FreeBSD kernel module (accf_http), add the following line into /boot/loader.conf:
accf_http_load=”YES”
Note: The default settings is located in /boot/defaults/loader.cnf. To see the related settings about accf, use:
grep accf /boot/defaults/loader.conf
which will returns:
accf_data_load=”NO” # Wait for data accept filter
accf_http_load=”NO” # Wait for full HTTP request accept filter
(2)No such file or directory: Failed to enable the 'httpready' Accept Filter
出现该问题的原因,是因为系统没有加载accf_http.ko和accf_data.ko
解决方法:(确保src与你的当前系统对应)
CODE:
[Copy to clipboard]
cd /usr/src/sys/modules/accf_data;make clean;make;make install;make clean;kldload accf_data
cd /usr/src/sys/modules/accf_http;make clean;make;make install;make clean;kldload accf_http
打开/etc/rc.conf设置:
CODE:
[Copy to clipboard]
accf_data_load="YES"
accf_http_load="YES"
apache22_enable="YES"
apache22_http_accept_enable="YES"
大大狗好强啊。佩服佩服………………
貌似现在的女强人真叫人感到害怕。
发表评论