<!DOCTYPE html SYSTEM "about:legacy-compat">
<html lang="zh-cn"><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="width=device-width, initial-scale=1" name="viewport">
<!--
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
              This file is generated from xml source: DO NOT EDIT
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      -->
<title>Apache HTTP 服务器 2.4 文档 - Apache HTTP 服务器 版本 2.4</title>
<link href="./style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet">
<link href="./style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size">
<link href="./style/css/manual-print.css" rel="stylesheet" media="print" type="text/css"><link rel="stylesheet" type="text/css" href="./style/css/prettify.css">
<script src="./style/scripts/prettify.min.js">
</script>

<link href="./images/favicon.png" rel="shortcut icon"></head>
<body id="index-page">
<div id="page-header">
<p class="menu"><a href="./mod/">模块</a> | <a href="./mod/quickreference.html">指令</a> | <a href="https://cwiki.apache.org/confluence/display/httpd/FAQ">常见问题</a> | <a href="./glossary.html">术语</a> | <a href="./sitemap.html">网站导航</a> | <a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2">Report a bug</a></p>
<p class="apache">Apache HTTP 服务器版本 2.4</p>
<img alt="" src="./images/feather.png"></div>
<div class="up"><a href="http://httpd.apache.org/docs-project/"><img title="<-" alt="<-" src="./images/left.gif"></a></div>
<div id="path">
<a href="https://www.apache.org/">Apache</a> &gt; <a href="https://httpd.apache.org/">HTTP 服务器</a> &gt; <a href="https://httpd.apache.org/docs/">文档</a></div>
<div id="page-content"><h1>Apache HTTP 服务器 2.4 文档</h1>
<button aria-label="Toggle language list" class="lang-toggle"><svg xmlns="http://www.w3.org/2000/svg" stroke-width="2" stroke="currentColor" fill="none" viewBox="0 0 24 24" height="16" width="16"><circle r="10" cy="12" cx="12"/><line y2="12" x2="22" y1="12" x1="2"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg></button>
<div class="toplang">
<p><span>可用语言: </span><a href="./da/" hreflang="da" rel="alternate" title="Dansk">&nbsp;da&nbsp;</a> |
<a href="./de/" hreflang="de" rel="alternate" title="Deutsch">&nbsp;de&nbsp;</a> |
<a href="./en/" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
<a href="./es/" hreflang="es" rel="alternate" title="Espa&ntilde;ol">&nbsp;es&nbsp;</a> |
<a href="./fr/" hreflang="fr" rel="alternate" title="Fran&ccedil;ais">&nbsp;fr&nbsp;</a> |
<a href="./ja/" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
<a href="./ko/" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
<a href="./pt-br/" hreflang="pt-br" rel="alternate" title="Portugu&ecirc;s (Brasil)">&nbsp;pt-br&nbsp;</a> |
<a href="./ru/" hreflang="ru" rel="alternate" title="Russian">&nbsp;ru&nbsp;</a> |
<a href="./tr/" hreflang="tr" rel="alternate" title="T&uuml;rk&ccedil;e">&nbsp;tr&nbsp;</a> |
<a href="./zh-cn/" title="Simplified Chinese">&nbsp;zh-cn&nbsp;</a></p>
</div>
<form method="get" action="https://www.google.com/search"><p><input name="as_q" value="" type="text"> <input value="Google 搜索" type="submit"><input value="10" name="num" type="hidden"><input value="zh-cn" name="hl" type="hidden"><input value="UTF-8" name="ie" type="hidden"><input value="Google Search" name="btnG" type="hidden"><input name="as_epq" value="版本 2.4" type="hidden"><input name="as_oq" value="" type="hidden"><input name="as_eq" value="&quot;List-Post&quot;" type="hidden"><input value="" name="lr" type="hidden"><input value="i" name="as_ft" type="hidden"><input value="" name="as_filetype" type="hidden"><input value="all" name="as_qdr" type="hidden"><input value="any" name="as_occt" type="hidden"><input value="i" name="as_dt" type="hidden"><input value="httpd.apache.org" name="as_sitesearch" type="hidden"><input value="off" name="safe" type="hidden"></p></form>
<table id="indextable"><tr><td class="col1"><div class="category"><h2><a name="release" id="release">发行说明</a></h2>
<ul><li><a href="new_features_2_4.html">Apache 2.3/2.4 的新特性</a></li>
<li><a href="new_features_2_2.html">Apache 2.1/2.2 的新特性</a></li>
<li><a href="new_features_2_0.html">Apache 2.0 的新特性</a></li>
<li><a href="upgrading.html">从 2.2 升级到 2.4</a></li>
<li><a href="license.html">Apache 许可证</a></li>
</ul>
</div><div class="category"><h2><a name="manual" id="manual">参考手册</a></h2>
<ul><li><a href="install.html">编译与安装</a></li>
<li><a href="invoking.html">启动</a></li>
<li><a href="stopping.html">停止与重启</a></li>
<li><a href="mod/quickreference.html">指令快速参考</a></li>
<li><a href="mod/">模块</a></li>
<li><a href="mpm.html">多处理模块(MPM)</a></li>
<li><a href="filter.html">过滤器</a></li>
<li><a href="handler.html">处理器</a></li>
<li><a href="expr.html">表达式解析器</a></li>
<li><a href="programs/">服务器与支持程序</a></li>
<li><a href="glossary.html">术语</a></li>
</ul>
</div></td><td><div class="category"><h2><a name="usersguide" id="usersguide">用户指南</a></h2>
<ul><li><a href="getting-started.html">入门指南</a></li>
<li><a href="bind.html">绑定指定地址与端口</a></li>
<li><a href="configuring.html">配置文件</a></li>
<li><a href="sections.html">配置片段</a></li>
<li><a href="caching.html">缓存指南</a></li>
<li><a href="content-negotiation.html">内容协商</a></li>
<li><a href="dso.html">动态共享对象(DSO)</a></li>
<li><a href="env.html">环境变量</a></li>
<li><a href="logs.html">日志文件</a></li>
<li><a href="urlmapping.html">从 URL 映射到文件系统</a></li>
<li><a href="misc/perf-tuning.html">性能调谐</a></li>
<li><a href="misc/security_tips.html">安全技巧</a></li>
<li><a href="server-wide.html">服务器全局配置</a></li>
<li><a href="ssl/">SSL/TLS 加密</a></li>
<li><a href="suexec.html">执行 CGI 前的用户切换(suEXEC)</a></li>
<li><a href="rewrite/">URL 改写与 mod_rewrite</a></li>
<li><a href="vhosts/">虚拟主机</a></li>
</ul>
</div></td><td class="col3"><div class="category"><h2><a name="howto" id="howto">指引/教程</a></h2>
<ul><li><a href="howto/auth.html">认证，授权与访问控制</a></li>
<li><a href="howto/access.html">访问控制</a></li>
<li><a href="howto/cgi.html">CGI 与动态内容</a></li>
<li><a href="howto/htaccess.html">.htaccess 文件</a></li>
<li><a href="howto/ssi.html">服务器端插入(SSI)</a></li>
<li><a href="howto/public_html.html">用户私人网站目录(public_html)</a></li>
<li><a href="howto/reverse_proxy.html">反向代理设置指南</a></li>
<li><a href="howto/http2.html">HTTP/2 指南</a></li>
</ul>
</div><div class="category"><h2><a name="platform" id="platform">平台相关说明</a></h2>
<ul><li><a href="platform/windows.html">Microsoft Windows</a></li>
<li><a href="platform/rpm.html">基于RPM安装包的系统 (Redhat / CentOS / Fedora)</a></li>
<li><a href="platform/netware.html">Novell NetWare</a></li>
<li><a href="platform/ebcdic.html">EBCDIC 系统</a></li>
</ul>
</div><div class="category"><h2><a name="other" id="other">其它主题</a></h2>
<ul><li><a href="https://cwiki.apache.org/confluence/display/httpd/FAQ">常见问题</a></li>
<li><a href="sitemap.html">网站导航</a></li>
<li><a href="developer/">开发文档</a></li>
<li><a href="http://httpd.apache.org/docs-project/">帮助改进文档</a></li>
<li><a href="misc/">其它说明</a></li>
<li><a href="https://cwiki.apache.org/confluence/display/httpd/">维基</a></li>
</ul>
</div></td></tr></table></div>
<div class="bottomlang">
<p><span>可用语言: </span><a href="./da/" hreflang="da" rel="alternate" title="Dansk">&nbsp;da&nbsp;</a> |
<a href="./de/" hreflang="de" rel="alternate" title="Deutsch">&nbsp;de&nbsp;</a> |
<a href="./en/" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
<a href="./es/" hreflang="es" rel="alternate" title="Espa&ntilde;ol">&nbsp;es&nbsp;</a> |
<a href="./fr/" hreflang="fr" rel="alternate" title="Fran&ccedil;ais">&nbsp;fr&nbsp;</a> |
<a href="./ja/" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
<a href="./ko/" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
<a href="./pt-br/" hreflang="pt-br" rel="alternate" title="Portugu&ecirc;s (Brasil)">&nbsp;pt-br&nbsp;</a> |
<a href="./ru/" hreflang="ru" rel="alternate" title="Russian">&nbsp;ru&nbsp;</a> |
<a href="./tr/" hreflang="tr" rel="alternate" title="T&uuml;rk&ccedil;e">&nbsp;tr&nbsp;</a> |
<a href="./zh-cn/" title="Simplified Chinese">&nbsp;zh-cn&nbsp;</a></p>
</div><div id="footer">
<p class="apache">Copyright 2026 The Apache Software Foundation.<br>基于 <a href="https://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> 许可证.</p>
<p class="menu"><a href="./mod/">模块</a> | <a href="./mod/quickreference.html">指令</a> | <a href="https://cwiki.apache.org/confluence/display/httpd/FAQ">常见问题</a> | <a href="./glossary.html">术语</a> | <a href="./sitemap.html">网站导航</a> | <a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2">Report a bug</a></p></div><script><!--//--><![CDATA[//><!--
if (typeof(prettyPrint) !== 'undefined') {
    prettyPrint();
}
var langToggle = document.querySelector('.lang-toggle');
var topLang = document.querySelector('.toplang');
if (langToggle && topLang) {
    langToggle.addEventListener('click', function() { topLang.classList.toggle('open'); });
}
var qv = document.getElementById('quickview');
if (qv) {
    document.body.appendChild(qv);
    var qvBtn = document.createElement('button');
    qvBtn.className = 'qv-toggle';
    qvBtn.setAttribute('aria-label', 'Toggle page navigation');
    qvBtn.innerHTML = '&#9776;';
    document.body.appendChild(qvBtn);
    qvBtn.addEventListener('click', function() {
        var isOpen = qv.classList.toggle('open');
        if (isOpen) {
            qv.style.top = window.scrollY + 10 + 'px';
        }
    });
    window.addEventListener('scroll', function() { qv.classList.remove('open'); });
}
//--><!]]></script>
</body></html>