mitCPU 1 1
#限制由Apache子进程派生的进程占用的最大内存字节数
RLimitMEM 1 1
#限制由Apache子进程派生的进程所派生的进程数目
RLimitNPROC 0 1
</IfModule>
#禁止生成服务器端生成文档的页脚
ServerSignature Off
#### 性能相关
#在递送中使用内存映射来读取文件(某些情况下需要禁用)
EnableMMAP On
#使用操作系统内核的sendfile支持来将文件发送到客户端
EnableSendfile On
#禁用对客户端IP的DNS查找
HostnameLookups Off
#持久链接(禁用)
KeepAlive Off
KeepAliveTimeout 1
MaxKeepAliveRequests 1
#### 错误应答与错误日志
#自定义错误响应
#400 错误的请求
ErrorDocument 400 /error/http|ErrCode=400.htm
#403 禁止访问
ErrorDocument 403 /error/http|ErrCode=403.htm
#404 未找到
ErrorDocument 404 /error/http|ErrCode=404.htm
#405 方法不被允许
ErrorDocument 405 /error/http|ErrCode=405.htm
#406 资源已经找到但MIME类型与Accpet头中所指不兼容
ErrorDocument 406 /error/http|ErrCode=406.htm
#408 在服务器许可的等待时间内客户一直没有发出任何请求
ErrorDocument 408 /error/http|ErrCode=408.htm
#409 由于请求和资源的当前状态相冲突因此不能成功(通常和PUT有关)
ErrorDocument 409 /error/http|ErrCode=409.htm
#410 所请求的文档已经不再可用而且服务器不知道应该重定向到哪一个地址
ErrorDocument 410 /error/http|ErrCode=410.htm
#411 必须发送Content-Length头否则无法处理
ErrorDocument 411 /error/http|ErrCode=411.htm
#412 指定的一些前提条件失败
ErrorDocument 411 /error/http|ErrCode=412.htm
#413 请求实体太大
ErrorDocument 413 /error/http|ErrCode=413.htm
#414 请求URI太长
ErrorDocument 414 /error/http|ErrCode=414.htm
#415 不支持的MIME类型
ErrorDocument 415 /error/http|ErrCode=415.htm
#416 Range头所请求的范围无法满足
ErrorDocument 416 /error/http|ErrCode=416.htm
#417 执行失败
ErrorDocument 417 /error/http|ErrCode=417.htm
#423 锁定的错误
ErrorDocument 423 /error/http|ErrCode=423.htm
#500 内部服务器错误
ErrorDocument 500 /error/http|ErrCode=500.htm
#501 服务器不支持实现请求所需要的功能
ErrorDocument 501 /error/http|ErrCode=501.htm
#502 服务器用作网关或代理服务器时收到了无效响应
ErrorDocument 502 /error/http|ErrCode=502.htm
#503 服务器由于维护或者负载过重暂时不能提供服务
ErrorDocument 503 /error/http|ErrCode=503.htm
#504 不能及时地从远程服务器获得应答(作为代理或网关的服务器)
ErrorDocument 504 /error/http|ErrCode=504.htm
#505 服务器不支持请求中所指明的HTTP版本
#ErrorDocument 505 /error/http|ErrCode=505.htm
#返回给客户端的错误信息中包含的管理员邮件地址
ServerAdmin [email]webmaster@oklaoshi.org[/email]
#错误日志(未使用滚动)
<IfModule mpm_winnt_module>
ErrorLog log/error.log
LogLevel info
</IfModule>
完整httpd.conf 配置详情及中文注解_IT/计算机_专业资料。### 此份配置同时...(随后应当根据实际情况详细设置) <Files *.php> ExpiresActive Off </Files> ...
httpd.conf 文件配置详解 1/9 httpd.conf 文件配置详解 Apache 的基本设置主要...在 LinuxAid 中已经有不少文章做了详细的阐述,本文讨论了在使用 Apache 时,有...
在最下面显示README的文件内容 设置CGI脚本/将httpd.conf做为唯一的配置文件/用户授权和访问控制等 关于Apache的配置及使用,在LinuxAid中已经有不少文章做了详细的...
apache中在httpd.conf虚拟主机配置教程_IT/计算机_专业资料。一个在apache中设置虚拟主机的教程,由于很多用户都是单ip服务器,支持多个站点必须使用虚拟主机来设置。...
设置 CGI 脚本/将 httpd.conf 做为唯一的配置文件/用户授权和访问控制等 关于 Apache 的配置及使用,在 LinuxAid 中已经有不少文章做了详细的阐述,本文讨 论了...
Apache配置文件httpd.conf详解_IT/计算机_专业资料。本文档从以下几个方面对...4.MaxSpareServers 设置空闲子进程的最大数量.默认为 10.如果当前有超过 ...
当此指令设置为 All 时,所有具有 ".htaccess" 作用域的指令都允许出现在 .... Apache2 的配置 httpd.c... 11页 免费 超详细的apache httpd配... 7页...
对于Apache2.0里面的Apache2_httpd.conf文件中各参数做了详细详细描述。...虚拟主机的设置参数 # #配置和日志文件名:如果你指定的文件名以“/”开始(win...
httpd.conf 网友:jackpig 发布于: 2008.06.24 17:45 (共有条评论) 查 看...略 ... ExtendedStatus 显示详细状态信息 Apache 有一个 CGI 可以显示 Apache ...
热门文档