赞助连接

赞助连接

阅 读 文 章

apache奇怪的问题,偶滴个神啊~~~

[来源:网上转载 (http://bbs.chinaunix.net) | 作者:网友() | 时间:2007-06-21 | 浏览: 人次 ]


    #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"



大大狗好强啊。佩服佩服………………

貌似现在的女强人真叫人感到害怕。
TAG标签 : 问题 奇怪 the to LoadModule you be server and for

最新评论 共有位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表
网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.newhtm.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.