]> granicus.if.org Git - apache/blob - docs/manual/mod/core.html.es
make docs
[apache] / docs / manual / mod / core.html.es
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="es" xml:lang="es"><head>
4 <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" />
5 <!--
6         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
7               This file is generated from xml source: DO NOT EDIT
8         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
9       -->
10 <title>core - Servidor HTTP Apache Versión 2.5</title>
11 <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
12 <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
13 <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" />
14 <script src="../style/scripts/prettify.min.js" type="text/javascript">
15 </script>
16
17 <link href="../images/favicon.ico" rel="shortcut icon" /></head>
18 <body>
19 <div id="page-header">
20 <p class="menu"><a href="../mod/">Módulos</a> | <a href="../mod/quickreference.html">Directivas</a> | <a href="http://wiki.apache.org/httpd/FAQ">Preguntas Frecuentes</a> | <a href="../glossary.html">Glosario</a> | <a href="../sitemap.html">Mapa del sitio web</a></p>
21 <p class="apache">Versión 2.5 del Servidor HTTP Apache</p>
22 <img alt="" src="../images/feather.png" /></div>
23 <div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
24 <div id="path">
25 <a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">Servidor HTTP</a> &gt; <a href="http://httpd.apache.org/docs/">Documentación</a> &gt; <a href="../">Versión 2.5</a> &gt; <a href="./">Módulos</a></div>
26 <div id="page-content">
27 <div id="preamble"><h1>Funcionalidad Básica de Apache</h1>
28 <div class="toplang">
29 <p><span>Idiomas disponibles: </span><a href="../de/mod/core.html" hreflang="de" rel="alternate" title="Deutsch">&nbsp;de&nbsp;</a> |
30 <a href="../en/mod/core.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
31 <a href="../es/mod/core.html" title="Español">&nbsp;es&nbsp;</a> |
32 <a href="../fr/mod/core.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
33 <a href="../ja/mod/core.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
34 <a href="../tr/mod/core.html" hreflang="tr" rel="alternate" title="Türkçe">&nbsp;tr&nbsp;</a></p>
35 </div>
36 <div class="outofdate">Esta traducción podría estar
37             obsoleta. Consulte la versión en inglés de la
38             documentación para comprobar si se han producido cambios
39             recientementes.</div>
40 <table class="module"><tr><th><a href="module-dict.html#Description">Descripción:</a></th><td>Funcionalides básicas del Servidor HTTP Apache que siempre están presentes.</td></tr>
41 <tr><th><a href="module-dict.html#Status">Estado:</a></th><td>Core</td></tr></table>
42 </div>
43 <div id="quickview"><h3 class="directives">Directivas</h3>
44 <ul id="toc">
45 <li><img alt="" src="../images/down.gif" /> <a href="#acceptfilter">AcceptFilter</a></li>
46 <li><img alt="" src="../images/down.gif" /> <a href="#acceptpathinfo">AcceptPathInfo</a></li>
47 <li><img alt="" src="../images/down.gif" /> <a href="#accessfilename">AccessFileName</a></li>
48 <li><img alt="" src="../images/down.gif" /> <a href="#adddefaultcharset">AddDefaultCharset</a></li>
49 <li><img alt="" src="../images/down.gif" /> <a href="#allowencodedslashes">AllowEncodedSlashes</a></li>
50 <li><img alt="" src="../images/down.gif" /> <a href="#allowoverride">AllowOverride</a></li>
51 <li><img alt="" src="../images/down.gif" /> <a href="#allowoverridelist">AllowOverrideList</a></li>
52 <li><img alt="" src="../images/down.gif" /> <a href="#asyncfilter">AsyncFilter</a></li>
53 <li><img alt="" src="../images/down.gif" /> <a href="#cgimapextension">CGIMapExtension</a></li>
54 <li><img alt="" src="../images/down.gif" /> <a href="#cgipassauth">CGIPassAuth</a></li>
55 <li><img alt="" src="../images/down.gif" /> <a href="#cgivar">CGIVar</a></li>
56 <li><img alt="" src="../images/down.gif" /> <a href="#contentdigest">ContentDigest</a></li>
57 <li><img alt="" src="../images/down.gif" /> <a href="#defaultruntimedir">DefaultRuntimeDir</a></li>
58 <li><img alt="" src="../images/down.gif" /> <a href="#defaulttype">DefaultType</a></li>
59 <li><img alt="" src="../images/down.gif" /> <a href="#define">Define</a></li>
60 <li><img alt="" src="../images/down.gif" /> <a href="#directory">&lt;Directory&gt;</a></li>
61 <li><img alt="" src="../images/down.gif" /> <a href="#directorymatch">&lt;DirectoryMatch&gt;</a></li>
62 <li><img alt="" src="../images/down.gif" /> <a href="#documentroot">DocumentRoot</a></li>
63 <li><img alt="" src="../images/down.gif" /> <a href="#else">&lt;Else&gt;</a></li>
64 <li><img alt="" src="../images/down.gif" /> <a href="#elseif">&lt;ElseIf&gt;</a></li>
65 <li><img alt="" src="../images/down.gif" /> <a href="#enablemmap">EnableMMAP</a></li>
66 <li><img alt="" src="../images/down.gif" /> <a href="#enablesendfile">EnableSendfile</a></li>
67 <li><img alt="" src="../images/down.gif" /> <a href="#error">Error</a></li>
68 <li><img alt="" src="../images/down.gif" /> <a href="#errordocument">ErrorDocument</a></li>
69 <li><img alt="" src="../images/down.gif" /> <a href="#errorlog">ErrorLog</a></li>
70 <li><img alt="" src="../images/down.gif" /> <a href="#errorlogformat">ErrorLogFormat</a></li>
71 <li><img alt="" src="../images/down.gif" /> <a href="#extendedstatus">ExtendedStatus</a></li>
72 <li><img alt="" src="../images/down.gif" /> <a href="#fileetag">FileETag</a></li>
73 <li><img alt="" src="../images/down.gif" /> <a href="#files">&lt;Files&gt;</a></li>
74 <li><img alt="" src="../images/down.gif" /> <a href="#filesmatch">&lt;FilesMatch&gt;</a></li>
75 <li><img alt="" src="../images/down.gif" /> <a href="#forcetype">ForceType</a></li>
76 <li><img alt="" src="../images/down.gif" /> <a href="#gprofdir">GprofDir</a></li>
77 <li><img alt="" src="../images/down.gif" /> <a href="#hostnamelookups">HostnameLookups</a></li>
78 <li><img alt="" src="../images/down.gif" /> <a href="#if">&lt;If&gt;</a></li>
79 <li><img alt="" src="../images/down.gif" /> <a href="#ifdefine">&lt;IfDefine&gt;</a></li>
80 <li><img alt="" src="../images/down.gif" /> <a href="#ifmodule">&lt;IfModule&gt;</a></li>
81 <li><img alt="" src="../images/down.gif" /> <a href="#include">Include</a></li>
82 <li><img alt="" src="../images/down.gif" /> <a href="#includeoptional">IncludeOptional</a></li>
83 <li><img alt="" src="../images/down.gif" /> <a href="#keepalive">KeepAlive</a></li>
84 <li><img alt="" src="../images/down.gif" /> <a href="#keepalivetimeout">KeepAliveTimeout</a></li>
85 <li><img alt="" src="../images/down.gif" /> <a href="#limit">&lt;Limit&gt;</a></li>
86 <li><img alt="" src="../images/down.gif" /> <a href="#limitexcept">&lt;LimitExcept&gt;</a></li>
87 <li><img alt="" src="../images/down.gif" /> <a href="#limitinternalrecursion">LimitInternalRecursion</a></li>
88 <li><img alt="" src="../images/down.gif" /> <a href="#limitrequestbody">LimitRequestBody</a></li>
89 <li><img alt="" src="../images/down.gif" /> <a href="#limitrequestfields">LimitRequestFields</a></li>
90 <li><img alt="" src="../images/down.gif" /> <a href="#limitrequestfieldsize">LimitRequestFieldSize</a></li>
91 <li><img alt="" src="../images/down.gif" /> <a href="#limitrequestline">LimitRequestLine</a></li>
92 <li><img alt="" src="../images/down.gif" /> <a href="#limitxmlrequestbody">LimitXMLRequestBody</a></li>
93 <li><img alt="" src="../images/down.gif" /> <a href="#location">&lt;Location&gt;</a></li>
94 <li><img alt="" src="../images/down.gif" /> <a href="#locationmatch">&lt;LocationMatch&gt;</a></li>
95 <li><img alt="" src="../images/down.gif" /> <a href="#loglevel">LogLevel</a></li>
96 <li><img alt="" src="../images/down.gif" /> <a href="#logleveloverride">LogLevelOverride</a></li>
97 <li><img alt="" src="../images/down.gif" /> <a href="#maxkeepaliverequests">MaxKeepAliveRequests</a></li>
98 <li><img alt="" src="../images/down.gif" /> <a href="#maxrangeoverlaps">MaxRangeOverlaps</a></li>
99 <li><img alt="" src="../images/down.gif" /> <a href="#maxrangereversals">MaxRangeReversals</a></li>
100 <li><img alt="" src="../images/down.gif" /> <a href="#maxranges">MaxRanges</a></li>
101 <li><img alt="" src="../images/down.gif" /> <a href="#mergetrailers">MergeTrailers</a></li>
102 <li><img alt="" src="../images/down.gif" /> <a href="#mutex">Mutex</a></li>
103 <li><img alt="" src="../images/down.gif" /> <a href="#namevirtualhost">NameVirtualHost</a></li>
104 <li><img alt="" src="../images/down.gif" /> <a href="#options">Options</a></li>
105 <li><img alt="" src="../images/down.gif" /> <a href="#protocol">Protocol</a></li>
106 <li><img alt="" src="../images/down.gif" /> <a href="#protocols">Protocols</a></li>
107 <li><img alt="" src="../images/down.gif" /> <a href="#protocolshonororder">ProtocolsHonorOrder</a></li>
108 <li><img alt="" src="../images/down.gif" /> <a href="#qualifyredirecturl">QualifyRedirectURL</a></li>
109 <li><img alt="" src="../images/down.gif" /> <a href="#registerhttpmethod">RegisterHttpMethod</a></li>
110 <li><img alt="" src="../images/down.gif" /> <a href="#rlimitcpu">RLimitCPU</a></li>
111 <li><img alt="" src="../images/down.gif" /> <a href="#rlimitmem">RLimitMEM</a></li>
112 <li><img alt="" src="../images/down.gif" /> <a href="#rlimitnproc">RLimitNPROC</a></li>
113 <li><img alt="" src="../images/down.gif" /> <a href="#scriptinterpretersource">ScriptInterpreterSource</a></li>
114 <li><img alt="" src="../images/down.gif" /> <a href="#seerequesttail">SeeRequestTail</a></li>
115 <li><img alt="" src="../images/down.gif" /> <a href="#serveradmin">ServerAdmin</a></li>
116 <li><img alt="" src="../images/down.gif" /> <a href="#serveralias">ServerAlias</a></li>
117 <li><img alt="" src="../images/down.gif" /> <a href="#servername">ServerName</a></li>
118 <li><img alt="" src="../images/down.gif" /> <a href="#serverpath">ServerPath</a></li>
119 <li><img alt="" src="../images/down.gif" /> <a href="#serverroot">ServerRoot</a></li>
120 <li><img alt="" src="../images/down.gif" /> <a href="#serversignature">ServerSignature</a></li>
121 <li><img alt="" src="../images/down.gif" /> <a href="#servertokens">ServerTokens</a></li>
122 <li><img alt="" src="../images/down.gif" /> <a href="#sethandler">SetHandler</a></li>
123 <li><img alt="" src="../images/down.gif" /> <a href="#setinputfilter">SetInputFilter</a></li>
124 <li><img alt="" src="../images/down.gif" /> <a href="#setoutputfilter">SetOutputFilter</a></li>
125 <li><img alt="" src="../images/down.gif" /> <a href="#timeout">TimeOut</a></li>
126 <li><img alt="" src="../images/down.gif" /> <a href="#traceenable">TraceEnable</a></li>
127 <li><img alt="" src="../images/down.gif" /> <a href="#undefine">UnDefine</a></li>
128 <li><img alt="" src="../images/down.gif" /> <a href="#usecanonicalname">UseCanonicalName</a></li>
129 <li><img alt="" src="../images/down.gif" /> <a href="#usecanonicalphysicalport">UseCanonicalPhysicalPort</a></li>
130 <li><img alt="" src="../images/down.gif" /> <a href="#virtualhost">&lt;VirtualHost&gt;</a></li>
131 <li><img alt="" src="../images/down.gif" /> <a href="#warning">Warning</a></li>
132 </ul>
133 <ul class="seealso"><li><a href="#comments_section">Comentarios</a></li></ul></div>
134
135 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
136 <div class="directive-section"><h2><a name="AcceptFilter" id="AcceptFilter">AcceptFilter</a> <a name="acceptfilter" id="acceptfilter">Directiva</a></h2>
137 <table class="directive">
138 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Configura mejoras para un Protocolo de Escucha de Sockets</td></tr>
139 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>AcceptFilter <var>protocol</var> <var>accept_filter</var></code></td></tr>
140 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config</td></tr>
141 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
142 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
143 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Disponible en Apache httpd 2.1.5 y posteriores.
144 En Windows desde Apache httpd 2.3.3 y posteriores.</td></tr>
145 </table>
146     <p>Esta directiva hace posible mejoras específicas a nivel de sistema operativo
147        y a través del tipo de Protocolo para un socket que escucha.
148        La premisa básica es que el kernel no envíe un socket al servidor
149        hasta que o bien los datos se hayan recibido o bien se haya almacenado
150        en el buffer una Respuesta HTTP completa.  
151        Actualmente sólo están soportados
152        <a href="http://www.freebsd.org/cgi/man.cgi?query=accept_filter&amp;sektion=9">
153        Accept Filters</a> sobre FreeBSD, <code>TCP_DEFER_ACCEPT</code> sobre Linux, 
154        y AcceptEx() sobre Windows.</p>
155
156     <p>El uso de <code>none</code> para un argumento desactiva cualquier filtro 
157        aceptado para ese protocolo. Esto es útil para protocolos que requieren que un
158        servidor envíe datos primeros, tales como <code>ftp:</code> o <code>nntp</code>:</p>
159     <div class="example"><p><code>AcceptFilter nntp none</code></p></div>
160
161     <p>Los nombres de protocolo por defecto son <code>https</code> para el puerto 443
162        y <code>http</code> para todos los demás puertos. Para especificar que se está
163        utilizando otro protocolo con un puerto escuchando, añade el argumento <var>protocol</var>
164        a la directiva <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code>.</p>
165
166     <p>Sobre FreeBDS los valores por defecto:</p>
167     <div class="example"><p><code>
168         AcceptFilter http httpready <br />
169         AcceptFilter https dataready
170     </code></p></div>
171     
172     <p>El filtro <code>httpready</code> almacena en el buffer peticiones HTTP completas
173        a nivel de kernel.  Una vez que la petición es recibida, el kernel la envía al servidor. 
174        Consulta la página man de
175        <a href="http://www.freebsd.org/cgi/man.cgi?query=accf_http&amp;sektion=9">
176        accf_http(9)</a> para más detalles.  Puesto que las peticiones HTTPS
177        están encriptadas, sólo se utiliza el filtro
178        <a href="http://www.freebsd.org/cgi/man.cgi?query=accf_data&amp;sektion=9">accf_data(9)</a>.</p>
179
180     <p>Sobre Linux los valores por defecto son:</p>
181     <div class="example"><p><code>
182         AcceptFilter http data <br />
183         AcceptFilter https data
184     </code></p></div>
185
186     <p>En Linux, <code>TCP_DEFER_ACCEPT</code> no soporta el buffering en peticiones http.
187        Cualquier valor además de <code>none</code> habilitará 
188        <code>TCP_DEFER_ACCEPT</code> en ese socket. Para más detalles 
189        ver la página man de Linux 
190        <a href="http://homepages.cwi.nl/~aeb/linux/man2html/man7/tcp.7.html">
191        tcp(7)</a>.</p>
192
193     <p>Sobre Windows los valores por defecto son:</p>
194     <div class="example"><p><code>
195         AcceptFilter http data <br />
196         AcceptFilter https data
197     </code></p></div>
198
199     <p>Sobre Windows mpm_winnt interpreta el argumento AcceptFilter para conmutar la API
200        AcceptEx(), y no soporta el buffering sobre el protocolo http.  Hay dos valores
201        que utilizan la API Windows AcceptEx() y que recuperan sockets de red
202        entre conexciones.  <code>data</code> espera hasta que los datos han sido
203        transmitidos como se comentaba anteriormente, y el buffer inicial de datos y las
204        direcciones de red son recuperadas a partir de una única llamada AcceptEx().
205        <code>connect</code> utiliza la API AcceptEx() API, y recupera también
206        las direcciones de red, pero a diferencia de <code>none</code> 
207        la opción <code>connect</code> no espera a la transmisión inicial de los datos.</p>
208
209     <p>Sobre Windows, <code>none</code> prefiere accept() antes que AcceptEx()
210        y no recuperará sockets entre las conexiones.  Lo que es útil para los adaptadores de
211        red con un soporte precario de drivers, así como para algunos proveedores de red
212        tales como drivers vpn, o filtros de spam, de virus o de spyware.</p>  
213
214
215 <h3>Consulte también</h3>
216 <ul>
217 <li><code class="directive">Protocol</code></li>
218 </ul>
219 </div>
220 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
221 <div class="directive-section"><h2><a name="AcceptPathInfo" id="AcceptPathInfo">AcceptPathInfo</a> <a name="acceptpathinfo" id="acceptpathinfo">Directiva</a></h2>
222 <table class="directive">
223 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Los recursos aceptan información sobre su ruta</td></tr>
224 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>AcceptPathInfo On|Off|Default</code></td></tr>
225 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>AcceptPathInfo Default</code></td></tr>
226 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
227 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>FileInfo</td></tr>
228 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
229 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
230 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Disponible en Apache httpd 2.0.30 y posteriores</td></tr>
231 </table>
232
233     <p>Esta directiva controla si las peticiones que contienen información sobre la ruta
234     que sigue un fichero que existe (o un fichero que no existe pero en un directorio que
235     sí existe) serán aceptadas o denegadas.  La información de ruta puede estar disponible
236     para los scripts en la variable de entorno <code>PATH_INFO</code>.</p>
237
238     <p>Por ejemplo, asumamos que la ubicación <code>/test/</code> apunta a
239     un directorio que contiene únicamente el fichero
240     <code>here.html</code>.  Entonces, las peticiones tanto para
241     <code>/test/here.html/more</code> como para
242     <code>/test/nothere.html/more</code> recogen
243     <code>/more</code> como <code>PATH_INFO</code>.</p>
244
245     <p>Los tres posibles argumentos para la directiva
246     <code class="directive">AcceptPathInfo</code> son los siguientes:</p>
247     <dl>
248     <dt><code>Off</code></dt><dd>Una petición sólo será aceptada si
249     se corresponde con una ruta literal que existe.  Por lo tanto, una petición
250     con una información de ruta después del nombre de fichero tal como
251     <code>/test/here.html/more</code> en el ejemplo anterior devolverá
252     un error 404 NOT FOUND.</dd>
253
254     <dt><code>On</code></dt><dd>Una petición será aceptada si una
255     ruta principal de acceso se corresponde con un fichero que existe. El ejemplo
256     anterior <code>/test/here.html/more</code> será aceptado si
257     <code>/test/here.html</code> corresponde a un fichero válido.</dd>
258
259     <dt><code>Default</code></dt><dd>La gestión de las peticiones
260     con información de ruta está determinada por el <a href="../handler.html">controlador</a> responsable de la petición.
261     El controlador principal para para ficheros normales rechaza por defecto
262     peticiones <code>PATH_INFO</code>. Los controladores que sirven scripts, tales como <a href="mod_cgi.html">cgi-script</a> e <a href="mod_isapi.html">isapi-handler</a>, normalmente aceptan
263     <code>PATH_INFO</code> por defecto.</dd>
264     </dl>
265
266     <p>El objetivo principal de la directiva <code>AcceptPathInfo</code>
267     es permitirte sobreescribir la opción del controlador
268     de aceptar or rechazar <code>PATH_INFO</code>. Este tipo de sobreescritura se necesita,
269     por ejemplo, cuando utilizas un <a href="../filter.html">filtro</a>, tal como
270     <a href="mod_include.html">INCLUDES</a>, para generar contenido
271     basado en <code>PATH_INFO</code>. El controlador principal normalmente rechazaría
272     la petición, de modo que puedes utilizar la siguiente configuración para habilitarla
273     como script:</p>
274
275     <div class="example"><p><code>
276       &lt;Files "mypaths.shtml"&gt;<br />
277       <span class="indent">
278         Options +Includes<br />
279         SetOutputFilter INCLUDES<br />
280         AcceptPathInfo On<br />
281       </span>
282       &lt;/Files&gt;
283     </code></p></div>
284
285
286 </div>
287 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
288 <div class="directive-section"><h2><a name="AccessFileName" id="AccessFileName">AccessFileName</a> <a name="accessfilename" id="accessfilename">Directiva</a></h2>
289 <table class="directive">
290 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Nombre del fichero distribuido de configuración</td></tr>
291 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>AccessFileName <var>filename</var> [<var>filename</var>] ...</code></td></tr>
292 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>AccessFileName .htaccess</code></td></tr>
293 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
294 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
295 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
296 </table>
297     <p>Mientras que procesa una petición el servidor busca
298     el primer fichero de configuración existente dentro de un listado de nombres en
299     cada directorio de la ruta del documento, si los ficheros distribuidos
300     de configuración están <a href="#allowoverride">habilitados para ese
301     directorio</a>. Por ejemplo:</p>
302
303     <div class="example"><p><code>
304       AccessFileName .acl
305     </code></p></div>
306
307     <p>antes de servir el documento
308     <code>/usr/local/web/index.html</code>, el servidor leerá
309     <code>/.acl</code>, <code>/usr/.acl</code>,
310     <code>/usr/local/.acl</code> and <code>/usr/local/web/.acl</code>
311     para las directivas, salvo que estén deshabilitadas with</p>
312
313     <div class="example"><p><code>
314       &lt;Directory /&gt;<br />
315       <span class="indent">
316         AllowOverride None<br />
317       </span>
318       &lt;/Directory&gt;
319     </code></p></div>
320
321 <h3>Consulte también</h3>
322 <ul>
323 <li><code class="directive"><a href="#allowoverride">AllowOverride</a></code></li>
324 <li><a href="../configuring.html">Configuration Files</a></li>
325 <li><a href="../howto/htaccess.html">.htaccess Files</a></li>
326 </ul>
327 </div>
328 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
329 <div class="directive-section"><h2><a name="AddDefaultCharset" id="AddDefaultCharset">AddDefaultCharset</a> <a name="adddefaultcharset" id="adddefaultcharset">Directiva</a></h2>
330 <table class="directive">
331 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Default charset parameter to be added when a response
332 content-type is <code>text/plain</code> or <code>text/html</code></td></tr>
333 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>AddDefaultCharset On|Off|<var>charset</var></code></td></tr>
334 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>AddDefaultCharset Off</code></td></tr>
335 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
336 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>FileInfo</td></tr>
337 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
338 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
339 </table>
340     <p>This directive specifies a default value for the media type
341     charset parameter (the name of a character encoding) to be added
342     to a response if and only if the response's content-type is either
343     <code>text/plain</code> or <code>text/html</code>.  This should override
344     any charset specified in the body of the response via a <code>META</code>
345     element, though the exact behavior is often dependent on the user's client
346     configuration. A setting of <code>AddDefaultCharset Off</code>
347     disables this functionality. <code>AddDefaultCharset On</code> enables
348     a default charset of <code>iso-8859-1</code>. Any other value is assumed
349     to be the <var>charset</var> to be used, which should be one of the
350     <a href="http://www.iana.org/assignments/character-sets">IANA registered
351     charset values</a> for use in Internet media types (MIME types).
352     For example:</p>
353
354     <div class="example"><p><code>
355       AddDefaultCharset utf-8
356     </code></p></div>
357
358     <p><code class="directive">AddDefaultCharset</code> should only be used when all
359     of the text resources to which it applies are known to be in that
360     character encoding and it is too inconvenient to label their charset
361     individually. One such example is to add the charset parameter
362     to resources containing generated content, such as legacy CGI
363     scripts, that might be vulnerable to cross-site scripting attacks
364     due to user-provided data being included in the output.  Note, however,
365     that a better solution is to just fix (or delete) those scripts, since
366     setting a default charset does not protect users that have enabled
367     the "auto-detect character encoding" feature on their browser.</p>
368
369 <h3>Consulte también</h3>
370 <ul>
371 <li><code class="directive"><a href="../mod/mod_mime.html#addcharset">AddCharset</a></code></li>
372 </ul>
373 </div>
374 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
375 <div class="directive-section"><h2><a name="AllowEncodedSlashes" id="AllowEncodedSlashes">AllowEncodedSlashes</a> <a name="allowencodedslashes" id="allowencodedslashes">Directiva</a></h2>
376 <table class="directive">
377 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Determines whether encoded path separators in URLs are allowed to
378 be passed through</td></tr>
379 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>AllowEncodedSlashes On|Off</code></td></tr>
380 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>AllowEncodedSlashes Off</code></td></tr>
381 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
382 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
383 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
384 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Available in Apache httpd 2.0.46 and later</td></tr>
385 </table>
386     <p>The <code class="directive">AllowEncodedSlashes</code> directive allows URLs
387     which contain encoded path separators (<code>%2F</code> for <code>/</code>
388     and additionally <code>%5C</code> for <code>\</code> on according systems)
389     to be used. Normally such URLs are refused with a 404 (Not found) error.</p>
390
391     <p>Turning <code class="directive">AllowEncodedSlashes</code> <code>On</code> is
392     mostly useful when used in conjunction with <code>PATH_INFO</code>.</p>
393
394     <div class="note"><h3>Note</h3>
395       <p>Allowing encoded slashes does <em>not</em> imply <em>decoding</em>.
396       Occurrences of <code>%2F</code> or <code>%5C</code> (<em>only</em> on
397       according systems) will be left as such in the otherwise decoded URL
398       string.</p>
399     </div>
400
401 <h3>Consulte también</h3>
402 <ul>
403 <li><code class="directive"><a href="#acceptpathinfo">AcceptPathInfo</a></code></li>
404 </ul>
405 </div>
406 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
407 <div class="directive-section"><h2><a name="AllowOverride" id="AllowOverride">AllowOverride</a> <a name="allowoverride" id="allowoverride">Directiva</a></h2>
408 <table class="directive">
409 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Types of directives that are allowed in
410 <code>.htaccess</code> files</td></tr>
411 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>AllowOverride All|None|<var>directive-type</var>
412 [<var>directive-type</var>] ...</code></td></tr>
413 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>AllowOverride None (2.3.9 and later), AllowOverride All (2.3.8 and earlier)</code></td></tr>
414 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>directory</td></tr>
415 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
416 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
417 </table>
418     <p>When the server finds an <code>.htaccess</code> file (as
419     specified by <code class="directive"><a href="#accessfilename">AccessFileName</a></code>)
420     it needs to know which directives declared in that file can override
421     earlier configuration directives.</p>
422
423     <div class="note"><h3>Only available in &lt;Directory&gt; sections</h3>
424     <code class="directive">AllowOverride</code> is valid only in
425     <code class="directive"><a href="#directory">&lt;Directory&gt;</a></code>
426     sections specified without regular expressions, not in <code class="directive"><a href="#location">&lt;Location&gt;</a></code>, <code class="directive"><a href="#directorymatch">&lt;DirectoryMatch&gt;</a></code> or
427     <code class="directive"><a href="#files">&lt;Files&gt;</a></code> sections.
428     </div>
429
430     <p>When this directive is set to <code>None</code>, then
431     <a href="#accessfilename">.htaccess</a> files are completely ignored.
432     In this case, the server will not even attempt to read
433     <code>.htaccess</code> files in the filesystem.</p>
434
435     <p>When this directive is set to <code>All</code>, then any
436     directive which has the .htaccess <a href="directive-dict.html#Context">Context</a> is allowed in
437     <code>.htaccess</code> files.</p>
438
439     <p>The <var>directive-type</var> can be one of the following
440     groupings of directives.</p>
441
442     <dl>
443       <dt>AuthConfig</dt>
444
445       <dd>
446
447       Allow use of the authorization directives (<code class="directive"><a href="../mod/mod_authn_dbm.html#authdbmgroupfile">AuthDBMGroupFile</a></code>,
448       <code class="directive"><a href="../mod/mod_authn_dbm.html#authdbmuserfile">AuthDBMUserFile</a></code>,
449       <code class="directive"><a href="../mod/mod_authz_groupfile.html#authgroupfile">AuthGroupFile</a></code>,
450       <code class="directive"><a href="../mod/mod_authn_core.html#authname">AuthName</a></code>,
451       <code class="directive"><a href="../mod/mod_authn_core.html#authtype">AuthType</a></code>, <code class="directive"><a href="../mod/mod_authn_file.html#authuserfile">AuthUserFile</a></code>, <code class="directive"><a href="../mod/mod_authz_core.html#require">Require</a></code>, <em>etc.</em>).</dd>
452
453       <dt>FileInfo</dt>
454
455       <dd>
456       Allow use of the directives controlling document types
457      (<code class="directive"><a href="#errordocument">ErrorDocument</a></code>,
458       <code class="directive"><a href="#forcetype">ForceType</a></code>,
459       <code class="directive"><a href="../mod/mod_negotiation.html#languagepriority">LanguagePriority</a></code>,
460       <code class="directive"><a href="#sethandler">SetHandler</a></code>,
461       <code class="directive"><a href="#setinputfilter">SetInputFilter</a></code>,
462       <code class="directive"><a href="#setoutputfilter">SetOutputFilter</a></code>, and
463       <code class="module"><a href="../mod/mod_mime.html">mod_mime</a></code> Add* and Remove* directives),
464       document meta data (<code class="directive"><a href="../mod/mod_headers.html#header">Header</a></code>, <code class="directive"><a href="../mod/mod_headers.html#requestheader">RequestHeader</a></code>, <code class="directive"><a href="../mod/mod_setenvif.html#setenvif">SetEnvIf</a></code>, <code class="directive"><a href="../mod/mod_setenvif.html#setenvifnocase">SetEnvIfNoCase</a></code>, <code class="directive"><a href="../mod/mod_setenvif.html#browsermatch">BrowserMatch</a></code>, <code class="directive"><a href="../mod/mod_usertrack.html#cookieexpires">CookieExpires</a></code>, <code class="directive"><a href="../mod/mod_usertrack.html#cookiedomain">CookieDomain</a></code>, <code class="directive"><a href="../mod/mod_usertrack.html#cookiestyle">CookieStyle</a></code>, <code class="directive"><a href="../mod/mod_usertrack.html#cookietracking">CookieTracking</a></code>, <code class="directive"><a href="../mod/mod_usertrack.html#cookiename">CookieName</a></code>),
465       <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code> directives <code class="directive"><a href="../mod/mod_rewrite.html#rewriteengine">RewriteEngine</a></code>, <code class="directive"><a href="../mod/mod_rewrite.html#rewriteoptions">RewriteOptions</a></code>, <code class="directive"><a href="../mod/mod_rewrite.html#rewritebase">RewriteBase</a></code>, <code class="directive"><a href="../mod/mod_rewrite.html#rewritecond">RewriteCond</a></code>, <code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code>) and
466       <code class="directive"><a href="../mod/mod_actions.html#action">Action</a></code> from
467       <code class="module"><a href="../mod/mod_actions.html">mod_actions</a></code>.
468       </dd>
469
470       <dt>Indexes</dt>
471
472       <dd>
473       Allow use of the directives controlling directory indexing
474       (<code class="directive"><a href="../mod/mod_autoindex.html#adddescription">AddDescription</a></code>,
475       <code class="directive"><a href="../mod/mod_autoindex.html#addicon">AddIcon</a></code>, <code class="directive"><a href="../mod/mod_autoindex.html#addiconbyencoding">AddIconByEncoding</a></code>,
476       <code class="directive"><a href="../mod/mod_autoindex.html#addiconbytype">AddIconByType</a></code>,
477       <code class="directive"><a href="../mod/mod_autoindex.html#defaulticon">DefaultIcon</a></code>, <code class="directive"><a href="../mod/mod_dir.html#directoryindex">DirectoryIndex</a></code>, <code class="directive"><a href="../mod/mod_autoindex.html#fancyindexing">FancyIndexing</a></code>, <code class="directive"><a href="../mod/mod_autoindex.html#headername">HeaderName</a></code>, <code class="directive"><a href="../mod/mod_autoindex.html#indexignore">IndexIgnore</a></code>, <code class="directive"><a href="../mod/mod_autoindex.html#indexoptions">IndexOptions</a></code>, <code class="directive"><a href="../mod/mod_autoindex.html#readmename">ReadmeName</a></code>,
478       <em>etc.</em>).</dd>
479
480       <dt>Limit</dt>
481
482       <dd>
483       Allow use of the directives controlling host access (<code class="directive"><a href="../mod/mod_authz_host.html#allow">Allow</a></code>, <code class="directive"><a href="../mod/mod_authz_host.html#deny">Deny</a></code> and <code class="directive"><a href="../mod/mod_authz_host.html#order">Order</a></code>).</dd>
484
485       <dt>Options[=<var>Option</var>,...]</dt>
486
487       <dd>
488       Allow use of the directives controlling specific directory
489       features (<code class="directive"><a href="#options">Options</a></code> and
490       <code class="directive"><a href="../mod/mod_include.html#xbithack">XBitHack</a></code>).
491       An equal sign may be given followed by a comma (but no spaces)
492       separated lists of options that may be set using the <code class="directive"><a href="#options">Options</a></code> command.</dd>
493     </dl>
494
495     <p>Example:</p>
496
497     <div class="example"><p><code>
498       AllowOverride AuthConfig Indexes
499     </code></p></div>
500
501     <p>In the example above all directives that are neither in the group
502     <code>AuthConfig</code> nor <code>Indexes</code> cause an internal
503     server error.</p>
504
505     <div class="note"><p>For security and performance reasons, do not set
506     <code>AllowOverride</code> to anything other than <code>None</code> 
507     in your <code>&lt;Directory /&gt;</code> block. Instead, find (or
508     create) the <code>&lt;Directory&gt;</code> block that refers to the
509     directory where you're actually planning to place a
510     <code>.htaccess</code> file.</p>
511     </div>
512
513 <h3>Consulte también</h3>
514 <ul>
515 <li><code class="directive"><a href="#accessfilename">AccessFileName</a></code></li>
516 <li><a href="../configuring.html">Configuration Files</a></li>
517 <li><a href="../howto/htaccess.html">.htaccess Files</a></li>
518 </ul>
519 </div>
520 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
521 <div class="directive-section"><h2><a name="AllowOverrideList" id="AllowOverrideList">AllowOverrideList</a> <a name="allowoverridelist" id="allowoverridelist">Directiva</a></h2>
522 <table class="directive">
523 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Individual directives that are allowed in
524 <code>.htaccess</code> files</td></tr>
525 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>AllowOverrideList None|<var>directive</var>
526 [<var>directive-type</var>] ...</code></td></tr>
527 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>AllowOverrideList None</code></td></tr>
528 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>directory</td></tr>
529 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
530 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
531 </table><p>The documentation for this directive has
532             not been translated yet. Please have a look at the English
533             version.</p><h3>Consulte también</h3>
534 <ul>
535 <li><code class="directive"><a href="#accessfilename">AccessFileName</a></code></li>
536 <li><code class="directive"><a href="#allowoverride">AllowOverride</a></code></li>
537 <li><a href="../configuring.html">Configuration Files</a></li>
538 <li><a href="../howto/htaccess.html">.htaccess Files</a></li>
539 </ul>
540 </div>
541 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
542 <div class="directive-section"><h2><a name="AsyncFilter" id="AsyncFilter">AsyncFilter</a> <a name="asyncfilter" id="asyncfilter">Directiva</a></h2>
543 <table class="directive">
544 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Set the minimum filter type eligible for asynchronous handling</td></tr>
545 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>AsyncFilter request|connection|network</code></td></tr>
546 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>AsyncFilter request</code></td></tr>
547 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
548 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
549 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
550 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Only available from Apache 2.5.0 and later.</td></tr>
551 </table><p>The documentation for this directive has
552             not been translated yet. Please have a look at the English
553             version.</p></div>
554 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
555 <div class="directive-section"><h2><a name="CGIMapExtension" id="CGIMapExtension">CGIMapExtension</a> <a name="cgimapextension" id="cgimapextension">Directiva</a></h2>
556 <table class="directive">
557 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Technique for locating the interpreter for CGI
558 scripts</td></tr>
559 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>CGIMapExtension <var>cgi-path</var> <var>.extension</var></code></td></tr>
560 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>directory, .htaccess</td></tr>
561 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>FileInfo</td></tr>
562 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
563 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
564 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>NetWare only</td></tr>
565 </table>
566     <p>This directive is used to control how Apache httpd finds the
567     interpreter used to run CGI scripts. For example, setting
568     <code>CGIMapExtension sys:\foo.nlm .foo</code> will
569     cause all CGI script files with a <code>.foo</code> extension to
570     be passed to the FOO interpreter.</p>
571
572 </div>
573 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
574 <div class="directive-section"><h2><a name="CGIPassAuth" id="CGIPassAuth">CGIPassAuth</a> <a name="cgipassauth" id="cgipassauth">Directiva</a></h2>
575 <table class="directive">
576 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Enables passing HTTP authorization headers to scripts as CGI
577 variables</td></tr>
578 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>CGIPassAuth On|Off</code></td></tr>
579 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>CGIPassAuth Off</code></td></tr>
580 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>directory, .htaccess</td></tr>
581 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>AuthConfig</td></tr>
582 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
583 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
584 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Available in Apache HTTP Server 2.4.13 and later</td></tr>
585 </table><p>The documentation for this directive has
586             not been translated yet. Please have a look at the English
587             version.</p></div>
588 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
589 <div class="directive-section"><h2><a name="CGIVar" id="CGIVar">CGIVar</a> <a name="cgivar" id="cgivar">Directiva</a></h2>
590 <table class="directive">
591 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Controls how some CGI variables are set</td></tr>
592 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>CGIVar <var>variable</var> <var>rule</var></code></td></tr>
593 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>directory, .htaccess</td></tr>
594 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>FileInfo</td></tr>
595 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
596 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
597 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Available in Apache HTTP Server 2.5 and later</td></tr>
598 </table><p>The documentation for this directive has
599             not been translated yet. Please have a look at the English
600             version.</p></div>
601 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
602 <div class="directive-section"><h2><a name="ContentDigest" id="ContentDigest">ContentDigest</a> <a name="contentdigest" id="contentdigest">Directiva</a></h2>
603 <table class="directive">
604 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Enables the generation of <code>Content-MD5</code> HTTP Response
605 headers</td></tr>
606 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>ContentDigest On|Off</code></td></tr>
607 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>ContentDigest Off</code></td></tr>
608 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
609 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>Options</td></tr>
610 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
611 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
612 </table>
613     <p>This directive enables the generation of
614     <code>Content-MD5</code> headers as defined in RFC1864
615     respectively RFC2616.</p>
616
617     <p>MD5 is an algorithm for computing a "message digest"
618     (sometimes called "fingerprint") of arbitrary-length data, with
619     a high degree of confidence that any alterations in the data
620     will be reflected in alterations in the message digest.</p>
621
622     <p>The <code>Content-MD5</code> header provides an end-to-end
623     message integrity check (MIC) of the entity-body. A proxy or
624     client may check this header for detecting accidental
625     modification of the entity-body in transit. Example header:</p>
626
627     <div class="example"><p><code>
628       Content-MD5: AuLb7Dp1rqtRtxz2m9kRpA==
629     </code></p></div>
630
631     <p>Note that this can cause performance problems on your server
632     since the message digest is computed on every request (the
633     values are not cached).</p>
634
635     <p><code>Content-MD5</code> is only sent for documents served
636     by the <code class="module"><a href="../mod/core.html">core</a></code>, and not by any module. For example,
637     SSI documents, output from CGI scripts, and byte range responses
638     do not have this header.</p>
639
640 </div>
641 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
642 <div class="directive-section"><h2><a name="DefaultRuntimeDir" id="DefaultRuntimeDir">DefaultRuntimeDir</a> <a name="defaultruntimedir" id="defaultruntimedir">Directiva</a></h2>
643 <table class="directive">
644 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Base directory for the server run-time files</td></tr>
645 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>DefaultRuntimeDir <var>directory-path</var></code></td></tr>
646 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>DefaultRuntimeDir DEFAULT_REL_RUNTIMEDIR (logs/)</code></td></tr>
647 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config</td></tr>
648 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
649 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
650 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Available in Apache 2.4.2 and later</td></tr>
651 </table><p>The documentation for this directive has
652             not been translated yet. Please have a look at the English
653             version.</p><h3>Consulte también</h3>
654 <ul>
655 <li><a href="../misc/security_tips.html#serverroot">the
656     security tips</a> for information on how to properly set
657     permissions on the <code class="directive">ServerRoot</code></li>
658 </ul>
659 </div>
660 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
661 <div class="directive-section"><h2><a name="DefaultType" id="DefaultType">DefaultType</a> <a name="defaulttype" id="defaulttype">Directiva</a></h2>
662 <table class="directive">
663 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>This directive has no effect other than to emit warnings
664 if the value is not <code>none</code>. In prior versions, DefaultType
665 would specify a default media type to assign to response content for
666 which no other media type configuration could be found.
667 </td></tr>
668 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>DefaultType <var>media-type|none</var></code></td></tr>
669 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>DefaultType none</code></td></tr>
670 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
671 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>FileInfo</td></tr>
672 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
673 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
674 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>The argument <code>none</code> is available in Apache httpd 2.2.7 and later.  All other choices are DISABLED for 2.3.x and later.</td></tr>
675 </table>
676     <p>This directive has been disabled.  For backwards compatibility
677     of configuration files, it may be specified with the value
678     <code>none</code>, meaning no default media type. For example:</p>
679
680     <div class="example"><p><code>
681       DefaultType None
682     </code></p></div>
683
684     <p><code>DefaultType None</code> is only available in
685     httpd-2.2.7 and later.</p>
686
687     <p>Use the mime.types configuration file and the
688     <code class="directive"><a href="../mod/mod_mime.html#addtype">AddType</a></code> to configure media
689     type assignments via file extensions, or the
690     <code class="directive"><a href="#forcetype">ForceType</a></code> directive to configure
691     the media type for specific resources. Otherwise, the server will
692     send the response without a Content-Type header field and the
693     recipient may attempt to guess the media type.</p>
694
695 </div>
696 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
697 <div class="directive-section"><h2><a name="Define" id="Define">Define</a> <a name="define" id="define">Directiva</a></h2>
698 <table class="directive">
699 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Define the existence of a variable</td></tr>
700 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>Define <var>parameter-name</var></code></td></tr>
701 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config</td></tr>
702 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
703 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
704 </table>
705     <p>Equivalent to passing the <code>-D</code> argument to <code class="program"><a href="../programs/httpd.html">httpd</a></code>.</p>
706     <p>This directive can be used to toggle the use of <code class="directive"><a href="#ifdefine">&lt;IfDefine&gt;</a></code> sections without needing to alter
707     <code>-D</code> arguments in any startup scripts.</p>
708
709 </div>
710 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
711 <div class="directive-section"><h2><a name="Directory" id="Directory">&lt;Directory&gt;</a> <a name="directory" id="directory">Directiva</a></h2>
712 <table class="directive">
713 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Enclose a group of directives that apply only to the
714 named file-system directory, sub-directories, and their contents.</td></tr>
715 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>&lt;Directory <var>directory-path</var>&gt;
716 ... &lt;/Directory&gt;</code></td></tr>
717 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
718 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
719 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
720 </table>
721     <p><code class="directive">&lt;Directory&gt;</code> and
722     <code>&lt;/Directory&gt;</code> are used to enclose a group of
723     directives that will apply only to the named directory,
724     sub-directories of that directory, and the files within the respective 
725     directories.  Any directive that is allowed
726     in a directory context may be used. <var>Directory-path</var> is
727     either the full path to a directory, or a wild-card string using
728     Unix shell-style matching. In a wild-card string, <code>?</code> matches
729     any single character, and <code>*</code> matches any sequences of
730     characters. You may also use <code>[]</code> character ranges. None
731     of the wildcards match a `/' character, so <code>&lt;Directory
732     /*/public_html&gt;</code> will not match
733     <code>/home/user/public_html</code>, but <code>&lt;Directory
734     /home/*/public_html&gt;</code> will match. Example:</p>
735
736     <div class="example"><p><code>
737       &lt;Directory /usr/local/httpd/htdocs&gt;<br />
738       <span class="indent">
739         Options Indexes FollowSymLinks<br />
740       </span>
741       &lt;/Directory&gt;
742     </code></p></div>
743
744     <div class="note">
745       <p>Be careful with the <var>directory-path</var> arguments:
746       They have to literally match the filesystem path which Apache httpd uses
747       to access the files. Directives applied to a particular
748       <code>&lt;Directory&gt;</code> will not apply to files accessed from
749       that same directory via a different path, such as via different symbolic
750       links.</p>
751     </div>
752
753     <p><a class="glossarylink" href="../glossary.html#regex" title="ver glosario">Regular
754     expressions</a> can also be used, with the addition of the
755     <code>~</code> character. For example:</p>
756
757     <div class="example"><p><code>
758       &lt;Directory ~ "^/www/.*/[0-9]{3}"&gt;
759     </code></p></div>
760
761     <p>would match directories in <code>/www/</code> that consisted of
762     three numbers.</p>
763
764     <p>If multiple (non-regular expression) <code class="directive">&lt;Directory&gt;</code> sections
765     match the directory (or one of its parents) containing a document,
766     then the directives are applied in the order of shortest match
767     first, interspersed with the directives from the <a href="#accessfilename">.htaccess</a> files. For example,
768     with</p>
769
770     <div class="example"><p><code>
771       &lt;Directory /&gt;<br />
772       <span class="indent">
773         AllowOverride None<br />
774       </span>
775       &lt;/Directory&gt;<br />
776       <br />
777       &lt;Directory /home/&gt;<br />
778       <span class="indent">
779         AllowOverride FileInfo<br />
780       </span>
781       &lt;/Directory&gt;
782     </code></p></div>
783
784     <p>for access to the document <code>/home/web/dir/doc.html</code>
785     the steps are:</p>
786
787     <ul>
788       <li>Apply directive <code>AllowOverride None</code>
789       (disabling <code>.htaccess</code> files).</li>
790
791       <li>Apply directive <code>AllowOverride FileInfo</code> (for
792       directory <code>/home</code>).</li>
793
794       <li>Apply any <code>FileInfo</code> directives in
795       <code>/home/.htaccess</code>, <code>/home/web/.htaccess</code> and
796       <code>/home/web/dir/.htaccess</code> in that order.</li>
797     </ul>
798
799     <p>Regular expressions are not considered until after all of the
800     normal sections have been applied. Then all of the regular
801     expressions are tested in the order they appeared in the
802     configuration file. For example, with</p>
803
804     <div class="example"><p><code>
805       &lt;Directory ~ abc$&gt;<br />
806       <span class="indent">
807         # ... directives here ...<br />
808       </span>
809       &lt;/Directory&gt;
810     </code></p></div>
811
812     <p>the regular expression section won't be considered until after
813     all normal <code class="directive">&lt;Directory&gt;</code>s and
814     <code>.htaccess</code> files have been applied. Then the regular
815     expression will match on <code>/home/abc/public_html/abc</code> and
816     the corresponding <code class="directive">&lt;Directory&gt;</code> will
817     be applied.</p>
818
819    <p><strong>Note that the default access for
820     <code>&lt;Directory /&gt;</code> is <code>Allow from All</code>.
821     This means that Apache httpd will serve any file mapped from an URL. It is
822     recommended that you change this with a block such
823     as</strong></p>
824
825     <div class="example"><p><code>
826       &lt;Directory /&gt;<br />
827       <span class="indent">
828         Order Deny,Allow<br />
829         Deny from All<br />
830       </span>
831       &lt;/Directory&gt;
832     </code></p></div>
833
834     <p><strong>and then override this for directories you
835     <em>want</em> accessible. See the <a href="../misc/security_tips.html">Security Tips</a> page for more
836     details.</strong></p>
837
838     <p>The directory sections occur in the <code>httpd.conf</code> file.
839     <code class="directive">&lt;Directory&gt;</code> directives
840     cannot nest, and cannot appear in a <code class="directive"><a href="#limit">&lt;Limit&gt;</a></code> or <code class="directive"><a href="#limitexcept">&lt;LimitExcept&gt;</a></code> section.</p>
841
842 <h3>Consulte también</h3>
843 <ul>
844 <li><a href="../sections.html">How &lt;Directory&gt;,
845     &lt;Location&gt; and &lt;Files&gt; sections work</a> for an
846     explanation of how these different sections are combined when a
847     request is received</li>
848 </ul>
849 </div>
850 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
851 <div class="directive-section"><h2><a name="DirectoryMatch" id="DirectoryMatch">&lt;DirectoryMatch&gt;</a> <a name="directorymatch" id="directorymatch">Directiva</a></h2>
852 <table class="directive">
853 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Enclose directives that apply to
854 the contents of file-system directories matching a regular expression.</td></tr>
855 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>&lt;DirectoryMatch <var>regex</var>&gt;
856 ... &lt;/DirectoryMatch&gt;</code></td></tr>
857 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
858 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
859 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
860 </table>
861     <p><code class="directive">&lt;DirectoryMatch&gt;</code> and
862     <code>&lt;/DirectoryMatch&gt;</code> are used to enclose a group
863     of directives which will apply only to the named directory (and the files within), 
864     the same as <code class="directive"><a href="#directory">&lt;Directory&gt;</a></code>. 
865     However, it takes as an argument a 
866     <a class="glossarylink" href="../glossary.html#regex" title="ver glosario">regular expression</a>.  For example:</p>
867
868     <div class="example"><p><code>
869       &lt;DirectoryMatch "^/www/(.+/)?[0-9]{3}"&gt;
870     </code></p></div>
871
872     <p>would match directories in <code>/www/</code> that consisted of three
873     numbers.</p>
874
875    <div class="note"><h3>Compatability</h3>
876       Prior to 2.3.9, this directive implicitly applied to sub-directories
877       (like <code class="directive"><a href="#directory">&lt;Directory&gt;</a></code>) and
878       could not match the end of line symbol ($).  In 2.3.9 and later,
879       only directories that match the expression are affected by the enclosed
880       directives.
881     </div>
882
883     <div class="note"><h3>Trailing Slash</h3>
884       This directive applies to requests for directories that may or may 
885       not end in a trailing slash, so expressions that are anchored to the 
886       end of line ($) must be written with care.
887     </div>
888
889 <h3>Consulte también</h3>
890 <ul>
891 <li><code class="directive"><a href="#directory">&lt;Directory&gt;</a></code> for
892 a description of how regular expressions are mixed in with normal
893 <code class="directive">&lt;Directory&gt;</code>s</li>
894 <li><a href="../sections.html">How &lt;Directory&gt;, &lt;Location&gt; and
895 &lt;Files&gt; sections work</a> for an explanation of how these different
896 sections are combined when a request is received</li>
897 </ul>
898 </div>
899 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
900 <div class="directive-section"><h2><a name="DocumentRoot" id="DocumentRoot">DocumentRoot</a> <a name="documentroot" id="documentroot">Directiva</a></h2>
901 <table class="directive">
902 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Directory that forms the main document tree visible
903 from the web</td></tr>
904 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>DocumentRoot <var>directory-path</var></code></td></tr>
905 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>DocumentRoot /usr/local/apache/htdocs</code></td></tr>
906 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
907 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
908 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
909 </table>
910     <p>This directive sets the directory from which <code class="program"><a href="../programs/httpd.html">httpd</a></code>
911     will serve files. Unless matched by a directive like <code class="directive"><a href="../mod/mod_alias.html#alias">Alias</a></code>, the server appends the
912     path from the requested URL to the document root to make the
913     path to the document. Example:</p>
914
915     <div class="example"><p><code>
916       DocumentRoot /usr/web
917     </code></p></div>
918
919     <p>then an access to
920     <code>http://www.my.host.com/index.html</code> refers to
921     <code>/usr/web/index.html</code>. If the <var>directory-path</var> is 
922     not absolute then it is assumed to be relative to the <code class="directive"><a href="#serverroot">ServerRoot</a></code>.</p>
923
924     <p>The <code class="directive">DocumentRoot</code> should be specified without
925     a trailing slash.</p>
926
927 <h3>Consulte también</h3>
928 <ul>
929 <li><a href="../urlmapping.html#documentroot">Mapping URLs to Filesystem
930 Locations</a></li>
931 </ul>
932 </div>
933 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
934 <div class="directive-section"><h2><a name="Else" id="Else">&lt;Else&gt;</a> <a name="else" id="else">Directiva</a></h2>
935 <table class="directive">
936 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Contains directives that apply only if the condition of a
937 previous <code class="directive"><a href="#if">&lt;If&gt;</a></code> or
938 <code class="directive"><a href="#elseif">&lt;ElseIf&gt;</a></code> section is not
939 satisfied by a request at runtime</td></tr>
940 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>&lt;Else&gt; ... &lt;/Else&gt;</code></td></tr>
941 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
942 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>All</td></tr>
943 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
944 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
945 </table><p>The documentation for this directive has
946             not been translated yet. Please have a look at the English
947             version.</p><h3>Consulte también</h3>
948 <ul>
949 <li><code class="directive"><a href="#if">&lt;If&gt;</a></code></li>
950 <li><code class="directive"><a href="#elseif">&lt;ElseIf&gt;</a></code></li>
951 <li><a href="../sections.html">How &lt;Directory&gt;, &lt;Location&gt;,
952     &lt;Files&gt; sections work</a> for an explanation of how these
953     different sections are combined when a request is received.
954     <code class="directive">&lt;If&gt;</code>,
955     <code class="directive">&lt;ElseIf&gt;</code>, and
956     <code class="directive">&lt;Else&gt;</code> are applied last.</li>
957 </ul>
958 </div>
959 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
960 <div class="directive-section"><h2><a name="ElseIf" id="ElseIf">&lt;ElseIf&gt;</a> <a name="elseif" id="elseif">Directiva</a></h2>
961 <table class="directive">
962 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Contains directives that apply only if a condition is satisfied
963 by a request at runtime while the condition of a previous
964 <code class="directive"><a href="#if">&lt;If&gt;</a></code> or
965 <code class="directive">&lt;ElseIf&gt;</code> section is not
966 satisfied</td></tr>
967 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>&lt;ElseIf <var>expression</var>&gt; ... &lt;/ElseIf&gt;</code></td></tr>
968 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
969 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>All</td></tr>
970 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
971 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
972 </table><p>The documentation for this directive has
973             not been translated yet. Please have a look at the English
974             version.</p><h3>Consulte también</h3>
975 <ul>
976 <li><a href="../expr.html">Expressions in Apache HTTP Server</a>,
977 for a complete reference and more examples.</li>
978 <li><code class="directive"><a href="#if">&lt;If&gt;</a></code></li>
979 <li><code class="directive"><a href="#else">&lt;Else&gt;</a></code></li>
980 <li><a href="../sections.html">How &lt;Directory&gt;, &lt;Location&gt;,
981     &lt;Files&gt; sections work</a> for an explanation of how these
982     different sections are combined when a request is received.
983     <code class="directive">&lt;If&gt;</code>,
984     <code class="directive">&lt;ElseIf&gt;</code>, and
985     <code class="directive">&lt;Else&gt;</code> are applied last.</li>
986 </ul>
987 </div>
988 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
989 <div class="directive-section"><h2><a name="EnableMMAP" id="EnableMMAP">EnableMMAP</a> <a name="enablemmap" id="enablemmap">Directiva</a></h2>
990 <table class="directive">
991 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Use memory-mapping to read files during delivery</td></tr>
992 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>EnableMMAP On|Off</code></td></tr>
993 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>EnableMMAP On</code></td></tr>
994 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
995 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>FileInfo</td></tr>
996 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
997 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
998 </table>
999     <p>This directive controls whether the <code class="program"><a href="../programs/httpd.html">httpd</a></code> may use
1000     memory-mapping if it needs to read the contents of a file during
1001     delivery.  By default, when the handling of a request requires
1002     access to the data within a file -- for example, when delivering a
1003     server-parsed file using <code class="module"><a href="../mod/mod_include.html">mod_include</a></code> -- Apache httpd
1004     memory-maps the file if the OS supports it.</p>
1005
1006     <p>This memory-mapping sometimes yields a performance improvement.
1007     But in some environments, it is better to disable the memory-mapping
1008     to prevent operational problems:</p>
1009
1010     <ul>
1011     <li>On some multiprocessor systems, memory-mapping can reduce the
1012     performance of the <code class="program"><a href="../programs/httpd.html">httpd</a></code>.</li>
1013     <li>Deleting or truncating a file while <code class="program"><a href="../programs/httpd.html">httpd</a></code>
1014       has it memory-mapped can cause <code class="program"><a href="../programs/httpd.html">httpd</a></code> to
1015       crash with a segmentation fault.
1016     </li>
1017     </ul>
1018
1019     <p>For server configurations that are vulnerable to these problems,
1020     you should disable memory-mapping of delivered files by specifying:</p>
1021
1022     <div class="example"><p><code>
1023       EnableMMAP Off
1024     </code></p></div>
1025
1026     <p>For NFS mounted files, this feature may be disabled explicitly for
1027     the offending files by specifying:</p>
1028
1029     <div class="example"><p><code>
1030       &lt;Directory "/path-to-nfs-files"&gt;
1031       <span class="indent">
1032         EnableMMAP Off
1033       </span>
1034       &lt;/Directory&gt;
1035     </code></p></div>
1036
1037 </div>
1038 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
1039 <div class="directive-section"><h2><a name="EnableSendfile" id="EnableSendfile">EnableSendfile</a> <a name="enablesendfile" id="enablesendfile">Directiva</a></h2>
1040 <table class="directive">
1041 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Use the kernel sendfile support to deliver files to the client</td></tr>
1042 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>EnableSendfile On|Off</code></td></tr>
1043 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>EnableSendfile Off</code></td></tr>
1044 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
1045 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>FileInfo</td></tr>
1046 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
1047 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
1048 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Available in version 2.0.44 and later. Default changed to Off in
1049 version 2.3.9.</td></tr>
1050 </table>
1051     <p>This directive controls whether <code class="program"><a href="../programs/httpd.html">httpd</a></code> may use the
1052     sendfile support from the kernel to transmit file contents to the client.
1053     By default, when the handling of a request requires no access
1054     to the data within a file -- for example, when delivering a
1055     static file -- Apache httpd uses sendfile to deliver the file contents
1056     without ever reading the file if the OS supports it.</p>
1057
1058     <p>This sendfile mechanism avoids separate read and send operations,
1059     and buffer allocations. But on some platforms or within some
1060     filesystems, it is better to disable this feature to avoid
1061     operational problems:</p>
1062
1063     <ul>
1064     <li>Some platforms may have broken sendfile support that the build
1065     system did not detect, especially if the binaries were built on
1066     another box and moved to such a machine with broken sendfile
1067     support.</li>
1068     <li>On Linux the use of sendfile triggers TCP-checksum
1069     offloading bugs on certain networking cards when using IPv6.</li>
1070     <li>On Linux on Itanium, sendfile may be unable to handle files
1071     over 2GB in size.</li>
1072     <li>With a network-mounted <code class="directive"><a href="#documentroot">DocumentRoot</a></code> (e.g., NFS, SMB, CIFS, FUSE),
1073     the kernel may be unable to serve the network file through
1074     its own cache.</li>
1075     </ul>
1076
1077     <p>For server configurations that are not vulnerable to these problems,
1078     you may enable this feature by specifying:</p>
1079
1080     <div class="example"><p><code>
1081       EnableSendfile On
1082     </code></p></div>
1083
1084     <p>For network mounted files, this feature may be disabled explicitly
1085     for the offending files by specifying:</p>
1086
1087     <div class="example"><p><code>
1088       &lt;Directory "/path-to-nfs-files"&gt;
1089       <span class="indent">
1090         EnableSendfile Off
1091       </span>
1092       &lt;/Directory&gt;
1093     </code></p></div>
1094     <p>Please note that the per-directory and .htaccess configuration
1095        of <code class="directive">EnableSendfile</code> is not supported by
1096        <code class="module"><a href="../mod/mod_cache_disk.html">mod_cache_disk</a></code>.
1097        Only global definition of <code class="directive">EnableSendfile</code>
1098        is taken into account by the module.
1099     </p>
1100
1101 </div>
1102 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
1103 <div class="directive-section"><h2><a name="Error" id="Error">Error</a> <a name="error" id="error">Directiva</a></h2>
1104 <table class="directive">
1105 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Abort configuration parsing with a custom error message</td></tr>
1106 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>Error <var>message</var></code></td></tr>
1107 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
1108 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
1109 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
1110 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>2.3.9 and later</td></tr>
1111 </table>
1112     <p>If an error can be detected within the configuration, this
1113     directive can be used to generate a custom error message, and halt
1114     configuration parsing.  The typical use is for reporting required
1115     modules which are missing from the configuration.</p>
1116
1117     <div class="example"><h3>Example</h3><p><code>
1118       # ensure that mod_include is loaded<br />
1119       &lt;IfModule !include_module&gt;<br />
1120       Error mod_include is required by mod_foo.  Load it with LoadModule.<br />
1121       &lt;/IfModule&gt;<br />
1122       <br />
1123       # ensure that exactly one of SSL,NOSSL is defined<br />
1124       &lt;IfDefine SSL&gt;<br />
1125       &lt;IfDefine NOSSL&gt;<br />
1126       Error Both SSL and NOSSL are defined.  Define only one of them.<br />
1127       &lt;/IfDefine&gt;<br />
1128       &lt;/IfDefine&gt;<br />
1129       &lt;IfDefine !SSL&gt;<br />
1130       &lt;IfDefine !NOSSL&gt;<br />
1131       Error Either SSL or NOSSL must be defined.<br />
1132       &lt;/IfDefine&gt;<br />
1133       &lt;/IfDefine&gt;<br />
1134     </code></p></div>
1135
1136
1137 </div>
1138 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
1139 <div class="directive-section"><h2><a name="ErrorDocument" id="ErrorDocument">ErrorDocument</a> <a name="errordocument" id="errordocument">Directiva</a></h2>
1140 <table class="directive">
1141 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>What the server will return to the client
1142 in case of an error</td></tr>
1143 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>ErrorDocument <var>error-code</var> <var>document</var></code></td></tr>
1144 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
1145 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>FileInfo</td></tr>
1146 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
1147 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
1148 </table>
1149     <p>In the event of a problem or error, Apache httpd can be configured
1150     to do one of four things,</p>
1151
1152     <ol>
1153       <li>output a simple hardcoded error message</li>
1154
1155       <li>output a customized message</li>
1156
1157       <li>redirect to a local <var>URL-path</var> to handle the
1158       problem/error</li>
1159
1160       <li>redirect to an external <var>URL</var> to handle the
1161       problem/error</li>
1162     </ol>
1163
1164     <p>The first option is the default, while options 2-4 are
1165     configured using the <code class="directive">ErrorDocument</code>
1166     directive, which is followed by the HTTP response code and a URL
1167     or a message. Apache httpd will sometimes offer additional information
1168     regarding the problem/error.</p>
1169
1170     <p>URLs can begin with a slash (/) for local web-paths (relative
1171     to the <code class="directive"><a href="#documentroot">DocumentRoot</a></code>), or be a
1172     full URL which the client can resolve. Alternatively, a message
1173     can be provided to be displayed by the browser. Examples:</p>
1174
1175     <div class="example"><p><code>
1176       ErrorDocument 500 http://foo.example.com/cgi-bin/tester<br />
1177       ErrorDocument 404 /cgi-bin/bad_urls.pl<br />
1178       ErrorDocument 401 /subscription_info.html<br />
1179       ErrorDocument 403 "Sorry can't allow you access today"
1180     </code></p></div>
1181
1182     <p>Additionally, the special value <code>default</code> can be used
1183     to specify Apache httpd's simple hardcoded message.  While not required
1184     under normal circumstances, <code>default</code> will restore
1185     Apache httpd's simple hardcoded message for configurations that would
1186     otherwise inherit an existing <code class="directive">ErrorDocument</code>.</p>
1187
1188     <div class="example"><p><code>
1189       ErrorDocument 404 /cgi-bin/bad_urls.pl<br /><br />
1190       &lt;Directory /web/docs&gt;<br />
1191       <span class="indent">
1192         ErrorDocument 404 default<br />
1193       </span>
1194       &lt;/Directory&gt;
1195     </code></p></div>
1196
1197     <p>Note that when you specify an <code class="directive">ErrorDocument</code>
1198     that points to a remote URL (ie. anything with a method such as
1199     <code>http</code> in front of it), Apache HTTP Server will send a redirect to the
1200     client to tell it where to find the document, even if the
1201     document ends up being on the same server. This has several
1202     implications, the most important being that the client will not
1203     receive the original error status code, but instead will
1204     receive a redirect status code. This in turn can confuse web
1205     robots and other clients which try to determine if a URL is
1206     valid using the status code. In addition, if you use a remote
1207     URL in an <code>ErrorDocument 401</code>, the client will not
1208     know to prompt the user for a password since it will not
1209     receive the 401 status code. Therefore, <strong>if you use an
1210     <code>ErrorDocument 401</code> directive then it must refer to a local
1211     document.</strong></p>
1212
1213     <p>Microsoft Internet Explorer (MSIE) will by default ignore
1214     server-generated error messages when they are "too small" and substitute
1215     its own "friendly" error messages. The size threshold varies depending on
1216     the type of error, but in general, if you make your error document
1217     greater than 512 bytes, then MSIE will show the server-generated
1218     error rather than masking it.  More information is available in
1219     Microsoft Knowledge Base article <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;Q294807">Q294807</a>.</p>
1220
1221     <p>Although most error messages can be overriden, there are certain
1222     circumstances where the internal messages are used regardless of the
1223     setting of <code class="directive"><a href="#errordocument">ErrorDocument</a></code>.  In
1224     particular, if a malformed request is detected, normal request processing
1225     will be immediately halted and the internal error message returned.
1226     This is necessary to guard against security problems caused by
1227     bad requests.</p>
1228    
1229     <p>If you are using mod_proxy, you may wish to enable
1230     <code class="directive"><a href="../mod/mod_proxy.html#proxyerroroverride">ProxyErrorOverride</a></code> so that you can provide
1231     custom error messages on behalf of your Origin servers. If you don't enable ProxyErrorOverride,
1232     Apache httpd will not generate custom error documents for proxied content.</p>
1233
1234 <h3>Consulte también</h3>
1235 <ul>
1236 <li><a href="../custom-error.html">documentation of
1237     customizable responses</a></li>
1238 </ul>
1239 </div>
1240 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
1241 <div class="directive-section"><h2><a name="ErrorLog" id="ErrorLog">ErrorLog</a> <a name="errorlog" id="errorlog">Directiva</a></h2>
1242 <table class="directive">
1243 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Location where the server will log errors</td></tr>
1244 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code> ErrorLog <var>file-path</var>|syslog[:<var>facility</var>]</code></td></tr>
1245 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>ErrorLog logs/error_log (Unix) ErrorLog logs/error.log (Windows and OS/2)</code></td></tr>
1246 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
1247 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
1248 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
1249 </table>
1250     <p>The <code class="directive">ErrorLog</code> directive sets the name of
1251     the file to which the server will log any errors it encounters. If
1252     the <var>file-path</var> is not absolute then it is assumed to be 
1253     relative to the <code class="directive"><a href="#serverroot">ServerRoot</a></code>.</p>
1254
1255     <div class="example"><h3>Example</h3><p><code>
1256     ErrorLog /var/log/httpd/error_log
1257     </code></p></div>
1258
1259     <p>If the <var>file-path</var>
1260     begins with a pipe character "<code>|</code>" then it is assumed to be a
1261     command to spawn to handle the error log.</p>
1262
1263     <div class="example"><h3>Example</h3><p><code>
1264     ErrorLog "|/usr/local/bin/httpd_errors"
1265     </code></p></div>
1266
1267     <p>See the notes on <a href="../logs.html#piped">piped logs</a> for
1268     more information.</p>
1269
1270     <p>Using <code>syslog</code> instead of a filename enables logging
1271     via syslogd(8) if the system supports it. The default is to use
1272     syslog facility <code>local7</code>, but you can override this by
1273     using the <code>syslog:<var>facility</var></code> syntax where
1274     <var>facility</var> can be one of the names usually documented in
1275     syslog(1).  The facility is effectively global, and if it is changed
1276     in individual virtual hosts, the final facility specified affects the
1277     entire server.</p>
1278
1279     <div class="example"><h3>Example</h3><p><code>
1280     ErrorLog syslog:user
1281     </code></p></div>
1282
1283     <p>SECURITY: See the <a href="../misc/security_tips.html#serverroot">security tips</a>
1284     document for details on why your security could be compromised
1285     if the directory where log files are stored is writable by
1286     anyone other than the user that starts the server.</p>
1287     <div class="warning"><h3>Note</h3>
1288       <p>When entering a file path on non-Unix platforms, care should be taken
1289       to make sure that only forward slashed are used even though the platform
1290       may allow the use of back slashes. In general it is a good idea to always 
1291       use forward slashes throughout the configuration files.</p>
1292     </div>
1293
1294 <h3>Consulte también</h3>
1295 <ul>
1296 <li><code class="directive"><a href="#loglevel">LogLevel</a></code></li>
1297 <li><a href="../logs.html">Apache HTTP Server Log Files</a></li>
1298 </ul>
1299 </div>
1300 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
1301 <div class="directive-section"><h2><a name="ErrorLogFormat" id="ErrorLogFormat">ErrorLogFormat</a> <a name="errorlogformat" id="errorlogformat">Directiva</a></h2>
1302 <table class="directive">
1303 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Format specification for error log entries</td></tr>
1304 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code> ErrorLog [connection|request] <var>format</var></code></td></tr>
1305 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
1306 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
1307 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
1308 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Available in Apache httpd 2.3.9 and later</td></tr>
1309 </table>
1310     <p><code class="directive">ErrorLogFormat</code> allows to specify what
1311     supplementary information is logged in the error log in addition to the
1312     actual log message.</p>
1313
1314     <div class="example"><h3>Simple example</h3><p><code>
1315         ErrorLogFormat "[%t] [%l] [pid %P] %F: %E: [client %a] %M"
1316     </code></p></div>
1317
1318     <p>Specifying <code>connection</code> or <code>request</code> as first
1319     paramter allows to specify additional formats, causing additional
1320     information to be logged when the first message is logged for a specific
1321     connection or request, respectivly. This additional information is only
1322     logged once per connection/request. If a connection or request is processed
1323     without causing any log message, the additional information is not logged
1324     either.</p>
1325
1326     <p>It can happen that some format string items do not produce output.  For
1327     example, the Referer header is only present if the log message is
1328     associated to a request and the log message happens at a time when the
1329     Referer header has already been read from the client.  If no output is
1330     produced, the default behaviour is to delete everything from the preceeding
1331     space character to the next space character.  This means the log line is
1332     implicitly divided into fields on non-whitespace to whitespace transitions.
1333     If a format string item does not produce output, the whole field is
1334     ommitted.  For example, if the remote address <code>%a</code> in the log
1335     format <code>[%t] [%l] [%a] %M&nbsp;</code> is not available, the surrounding
1336     brackets are not logged either.  Space characters can be escaped with a
1337     backslash to prevent them from delimiting a field.  The combination '%&nbsp;'
1338     (percent space) is a zero-witdh field delimiter that does not produce any
1339     output.</p>
1340
1341     <p>The above behaviour can be changed by adding modifiers to the format
1342     string item. A <code>-</code> (minus) modifier causes a minus to be logged if the
1343     respective item does not produce any output. In once-per-connection/request
1344     formats, it is also possible to use the <code>+</code> (plus) modifier. If an
1345     item with the plus modifier does not produce any output, the whole line is
1346     ommitted.</p>
1347
1348     <p>A number as modifier can be used to assign a log severity level to a
1349     format item. The item will only be logged if the severity of the log
1350     message is not higher than the specified log severity level. The number can
1351     range from 1 (alert) over 4 (warn) and 7 (debug) to 15 (trace8).</p>
1352
1353     <p>Some format string items accept additional parameters in braces.</p>
1354
1355     <table class="bordered"><tr class="header"><th>Format&nbsp;String</th> <th>Description</th></tr>
1356 <tr><td><code>%%</code></td>
1357         <td>The percent sign</td></tr>
1358 <tr class="odd"><td><code>%...a</code></td>
1359         <td>Remote IP-address and port</td></tr>
1360 <tr><td><code>%...A</code></td>
1361         <td>Local IP-address and port</td></tr>
1362 <tr class="odd"><td><code>%...{name}e</code></td>
1363         <td>Request environment variable <code>name</code></td></tr>
1364 <tr><td><code>%...E</code></td>
1365         <td>APR/OS error status code and string</td></tr>
1366 <tr class="odd"><td><code>%...F</code></td>
1367         <td>Source file name and line number of the log call</td></tr>
1368 <tr><td><code>%...{name}i</code></td>
1369         <td>Request header <code>name</code></td></tr>
1370 <tr class="odd"><td><code>%...k</code></td>
1371         <td>Number of keep-alive requests on this connection</td></tr>
1372 <tr><td><code>%...l</code></td>
1373         <td>Loglevel of the message</td></tr>
1374 <tr class="odd"><td><code>%...L</code></td>
1375         <td>Log ID of the request</td></tr>
1376 <tr><td><code>%...{c}L</code></td>
1377         <td>Log ID of the connection</td></tr>
1378 <tr class="odd"><td><code>%...{C}L</code></td>
1379         <td>Log ID of the connection if used in connection scope, empty otherwise</td></tr>
1380 <tr><td><code>%...m</code></td>
1381         <td>Name of the module logging the message</td></tr>
1382 <tr class="odd"><td><code>%M</code></td>
1383         <td>The actual log message</td></tr>
1384 <tr><td><code>%...{name}n</code></td>
1385         <td>Request note <code>name</code></td></tr>
1386 <tr class="odd"><td><code>%...P</code></td>
1387         <td>Process ID of current process</td></tr>
1388 <tr><td><code>%...T</code></td>
1389         <td>Thread ID of current thread</td></tr>
1390 <tr class="odd"><td><code>%...t</code></td>
1391         <td>The current time</td></tr>
1392 <tr><td><code>%...{u}t</code></td>
1393         <td>The current time including micro-seconds</td></tr>
1394 <tr class="odd"><td><code>%...{cu}t</code></td>
1395         <td>The current time in compact ISO 8601 format, including
1396             micro-seconds</td></tr>
1397 <tr><td><code>%...v</code></td>
1398         <td>The canonical <code class="directive"><a href="#servername">ServerName</a></code>
1399             of the current server.</td></tr>
1400 <tr class="odd"><td><code>%...V</code></td>
1401         <td>The server name of the server serving the request according to the
1402             <code class="directive"><a href="#usecanonicalname">UseCanonicalName</a></code>
1403             setting.</td></tr>
1404 <tr><td><code>\&nbsp;</code> (backslash space)</td>
1405         <td>Non-field delimiting space</td></tr>
1406 <tr class="odd"><td><code>%&nbsp;</code> (percent space)</td>
1407         <td>Field delimiter (no output)</td></tr>
1408 </table>
1409
1410     <p>The log ID format <code>%L</code> produces a unique id for a connection
1411     or request. This can be used to correlate which log lines belong to the
1412     same connection or request, which request happens on which connection.
1413     A <code>%L</code> format string is also available in
1414     <code class="module"><a href="../mod/mod_log_config.html">mod_log_config</a></code>, to allow to correlate access log entries
1415     with error log lines. If <code class="module"><a href="../mod/mod_unique_id.html">mod_unique_id</a></code> is loaded, its
1416     unique id will be used as log ID for requests.</p>
1417
1418     <div class="example"><h3>Example (somewhat similar to default format)</h3><p><code>
1419         ErrorLogFormat "[%{u}t] [%-m:%l] [pid %P] %7F: %E: [client\ %a]
1420         %M%&nbsp;,\&nbsp;referer\&nbsp;%{Referer}i"
1421     </code></p></div>
1422
1423     <div class="example"><h3>Example (similar to the 2.2.x format)</h3><p><code>
1424         ErrorLogFormat "[%t] [%l] %7F: %E: [client\ %a]
1425         %M%&nbsp;,\&nbsp;referer\&nbsp;%{Referer}i"
1426     </code></p></div>
1427
1428     <div class="example"><h3>Advanced example with request/connection log IDs</h3><p><code>
1429         ErrorLogFormat "[%{uc}t] [%-m:%-l] [R:%L] [C:%{C}L] %7F: %E: %M"<br />
1430         ErrorLogFormat request "[%{uc}t] [R:%L] Request %k on C:%{c}L pid:%P tid:%T"<br />
1431         ErrorLogFormat request "[%{uc}t] [R:%L] UA:'%+{User-Agent}i'"<br />
1432         ErrorLogFormat request "[%{uc}t] [R:%L] Referer:'%+{Referer}i'"<br />
1433         ErrorLogFormat connection "[%{uc}t] [C:%{c}L] local\ %a remote\ %A"<br />
1434     </code></p></div>
1435
1436
1437 <h3>Consulte también</h3>
1438 <ul>
1439 <li><code class="directive"><a href="#errorlog">ErrorLog</a></code></li>
1440 <li><code class="directive"><a href="#loglevel">LogLevel</a></code></li>
1441 <li><a href="../logs.html">Apache HTTP Server Log Files</a></li>
1442 </ul>
1443 </div>
1444 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
1445 <div class="directive-section"><h2><a name="ExtendedStatus" id="ExtendedStatus">ExtendedStatus</a> <a name="extendedstatus" id="extendedstatus">Directiva</a></h2>
1446 <table class="directive">
1447 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Keep track of extended status information for each 
1448 request</td></tr>
1449 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>ExtendedStatus On|Off</code></td></tr>
1450 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>ExtendedStatus Off[*]</code></td></tr>
1451 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config</td></tr>
1452 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
1453 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
1454 </table>
1455     <p>This option tracks additional data per worker about the
1456     currently executing request, and a utilization summary; you 
1457     can see these variables during runtime by configuring 
1458     <code class="module"><a href="../mod/mod_status.html">mod_status</a></code>.  Note that other modules may
1459     rely on this scoreboard.</p>
1460
1461     <p>This setting applies to the entire server, and cannot be
1462     enabled or disabled on a virtualhost-by-virtualhost basis.
1463     The collection of extended status information can slow down
1464     the server.  Also note that this setting cannot be changed
1465     during a graceful restart.</p>
1466
1467     <div class="note">
1468     <p>Note that loading <code class="module"><a href="../mod/mod_status.html">mod_status</a></code> will change 
1469     the default behavior to ExtendedStatus On, while other
1470     third party modules may do the same.  Such modules rely on
1471     collecting detailed information about the state of all workers.
1472     The default is changed by <code class="module"><a href="../mod/mod_status.html">mod_status</a></code> beginning
1473     with version 2.3.6; the previous default was always Off.</p>
1474     </div>
1475
1476
1477 </div>
1478 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
1479 <div class="directive-section"><h2><a name="FileETag" id="FileETag">FileETag</a> <a name="fileetag" id="fileetag">Directiva</a></h2>
1480 <table class="directive">
1481 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>File attributes used to create the ETag
1482 HTTP response header for static files</td></tr>
1483 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>FileETag <var>component</var> ...</code></td></tr>
1484 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>FileETag INode MTime Size</code></td></tr>
1485 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
1486 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>FileInfo</td></tr>
1487 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
1488 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
1489 </table>
1490     <p>
1491     The <code class="directive">FileETag</code> directive configures the file
1492     attributes that are used to create the <code>ETag</code> (entity
1493     tag) response header field when the document is based on a static file.
1494     (The <code>ETag</code> value is used in cache management to save
1495     network bandwidth.) The
1496     <code class="directive">FileETag</code> directive allows you to choose
1497     which of these -- if any -- should be used. The recognized keywords are:
1498     </p>
1499
1500     <dl>
1501      <dt><strong>INode</strong></dt>
1502      <dd>The file's i-node number will be included in the calculation</dd>
1503      <dt><strong>MTime</strong></dt>
1504      <dd>The date and time the file was last modified will be included</dd>
1505      <dt><strong>Size</strong></dt>
1506      <dd>The number of bytes in the file will be included</dd>
1507      <dt><strong>All</strong></dt>
1508      <dd>All available fields will be used. This is equivalent to:
1509          <div class="example"><p><code>FileETag INode MTime Size</code></p></div></dd>
1510      <dt><strong>None</strong></dt>
1511      <dd>If a document is file-based, no <code>ETag</code> field will be
1512        included in the response</dd>
1513     </dl>
1514
1515     <p>The <code>INode</code>, <code>MTime</code>, and <code>Size</code>
1516     keywords may be prefixed with either <code>+</code> or <code>-</code>,
1517     which allow changes to be made to the default setting inherited
1518     from a broader scope. Any keyword appearing without such a prefix
1519     immediately and completely cancels the inherited setting.</p>
1520
1521     <p>If a directory's configuration includes
1522     <code>FileETag&nbsp;INode&nbsp;MTime&nbsp;Size</code>, and a
1523     subdirectory's includes <code>FileETag&nbsp;-INode</code>,
1524     the setting for that subdirectory (which will be inherited by
1525     any sub-subdirectories that don't override it) will be equivalent to
1526     <code>FileETag&nbsp;MTime&nbsp;Size</code>.</p>
1527     <div class="warning"><h3>Warning</h3>
1528     Do not change the default for directories or locations that have WebDAV
1529     enabled and use <code class="module"><a href="../mod/mod_dav_fs.html">mod_dav_fs</a></code> as a storage provider.
1530     <code class="module"><a href="../mod/mod_dav_fs.html">mod_dav_fs</a></code> uses <code>INode&nbsp;MTime&nbsp;Size</code>
1531     as a fixed format for <code>ETag</code> comparisons on conditional requests.
1532     These conditional requests will break if the <code>ETag</code> format is
1533     changed via <code class="directive">FileETag</code>.
1534     </div>
1535     <div class="note"><h3>Server Side Includes</h3>
1536     An ETag is not generated for responses parsed by <code class="module"><a href="../mod/mod_include.html">mod_include</a></code>, 
1537     since the response entity can change without a change of the INode, MTime, or Size 
1538     of the static file with embedded SSI directives.
1539     </div>
1540
1541
1542 </div>
1543 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
1544 <div class="directive-section"><h2><a name="Files" id="Files">&lt;Files&gt;</a> <a name="files" id="files">Directiva</a></h2>
1545 <table class="directive">
1546 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Contains directives that apply to matched
1547 filenames</td></tr>
1548 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>&lt;Files <var>filename</var>&gt; ... &lt;/Files&gt;</code></td></tr>
1549 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
1550 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>All</td></tr>
1551 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
1552 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
1553 </table>
1554     <p>The <code class="directive">&lt;Files&gt;</code> directive
1555     limits the scope of the enclosed directives by filename. It is comparable
1556     to the <code class="directive"><a href="#directory">&lt;Directory&gt;</a></code>
1557     and <code class="directive"><a href="#location">&lt;Location&gt;</a></code>
1558     directives. It should be matched with a <code>&lt;/Files&gt;</code>
1559     directive. The directives given within this section will be applied to
1560     any object with a basename (last component of filename) matching the
1561     specified filename. <code class="directive">&lt;Files&gt;</code>
1562     sections are processed in the order they appear in the
1563     configuration file, after the <code class="directive"><a href="#directory">&lt;Directory&gt;</a></code> sections and
1564     <code>.htaccess</code> files are read, but before <code class="directive"><a href="#location">&lt;Location&gt;</a></code> sections. Note
1565     that <code class="directive">&lt;Files&gt;</code> can be nested
1566     inside <code class="directive"><a href="#directory">&lt;Directory&gt;</a></code> sections to restrict the
1567     portion of the filesystem they apply to.</p>
1568
1569     <p>The <var>filename</var> argument should include a filename, or
1570     a wild-card string, where <code>?</code> matches any single character,
1571     and <code>*</code> matches any sequences of characters.
1572     <a class="glossarylink" href="../glossary.html#regex" title="ver glosario">Regular expressions</a> 
1573     can also be used, with the addition of the
1574     <code>~</code> character. For example:</p>
1575
1576     <div class="example"><p><code>
1577       &lt;Files ~ "\.(gif|jpe?g|png)$"&gt;
1578     </code></p></div>
1579
1580     <p>would match most common Internet graphics formats. <code class="directive"><a href="#filesmatch">&lt;FilesMatch&gt;</a></code> is preferred,
1581     however.</p>
1582
1583     <p>Note that unlike <code class="directive"><a href="#directory">&lt;Directory&gt;</a></code> and <code class="directive"><a href="#location">&lt;Location&gt;</a></code> sections, <code class="directive">&lt;Files&gt;</code> sections can be used inside
1584     <code>.htaccess</code> files. This allows users to control access to
1585     their own files, at a file-by-file level.</p>
1586
1587
1588 <h3>Consulte también</h3>
1589 <ul>
1590 <li><a href="../sections.html">How &lt;Directory&gt;, &lt;Location&gt;
1591     and &lt;Files&gt; sections work</a> for an explanation of how these
1592     different sections are combined when a request is received</li>
1593 </ul>
1594 </div>
1595 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
1596 <div class="directive-section"><h2><a name="FilesMatch" id="FilesMatch">&lt;FilesMatch&gt;</a> <a name="filesmatch" id="filesmatch">Directiva</a></h2>
1597 <table class="directive">
1598 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Contains directives that apply to regular-expression matched
1599 filenames</td></tr>
1600 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>&lt;FilesMatch <var>regex</var>&gt; ... &lt;/FilesMatch&gt;</code></td></tr>
1601 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
1602 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>All</td></tr>
1603 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
1604 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
1605 </table>
1606     <p>The <code class="directive">&lt;FilesMatch&gt;</code> directive
1607     limits the scope of the enclosed directives by filename, just as the
1608     <code class="directive"><a href="#files">&lt;Files&gt;</a></code> directive
1609     does. However, it accepts a <a class="glossarylink" href="../glossary.html#regex" title="ver glosario">regular 
1610     expression</a>. For example:</p>
1611
1612     <div class="example"><p><code>
1613       &lt;FilesMatch "\.(gif|jpe?g|png)$"&gt;
1614     </code></p></div>
1615
1616     <p>would match most common Internet graphics formats.</p>
1617
1618 <h3>Consulte también</h3>
1619 <ul>
1620 <li><a href="../sections.html">How &lt;Directory&gt;, &lt;Location&gt;
1621     and &lt;Files&gt; sections work</a> for an explanation of how these
1622     different sections are combined when a request is received</li>
1623 </ul>
1624 </div>
1625 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
1626 <div class="directive-section"><h2><a name="ForceType" id="ForceType">ForceType</a> <a name="forcetype" id="forcetype">Directiva</a></h2>
1627 <table class="directive">
1628 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Forces all matching files to be served with the specified
1629 media type in the HTTP Content-Type header field</td></tr>
1630 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>ForceType <var>media-type</var>|None</code></td></tr>
1631 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>directory, .htaccess</td></tr>
1632 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>FileInfo</td></tr>
1633 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
1634 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
1635 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Moved to the core in Apache httpd 2.0</td></tr>
1636 </table>
1637     <p>When placed into an <code>.htaccess</code> file or a
1638     <code class="directive"><a href="#directory">&lt;Directory&gt;</a></code>, or
1639     <code class="directive"><a href="#location">&lt;Location&gt;</a></code> or
1640     <code class="directive"><a href="#files">&lt;Files&gt;</a></code>
1641     section, this directive forces all matching files to be served
1642     with the content type identification given by
1643     <var>media-type</var>. For example, if you had a directory full of
1644     GIF files, but did not want to label them all with <code>.gif</code>,
1645     you might want to use:</p>
1646
1647     <div class="example"><p><code>
1648       ForceType image/gif
1649     </code></p></div>
1650
1651     <p>Note that this directive overrides other indirect media type
1652     associations defined in mime.types or via the
1653     <code class="directive"><a href="../mod/mod_mime.html#addtype">AddType</a></code>.</p>
1654
1655     <p>You can also override more general
1656     <code class="directive">ForceType</code> settings
1657     by using the value of <code>None</code>:</p>
1658
1659     <div class="example"><p><code>
1660       # force all files to be image/gif:<br />
1661       &lt;Location /images&gt;<br />
1662         <span class="indent">
1663           ForceType image/gif<br />
1664         </span>
1665       &lt;/Location&gt;<br />
1666       <br />
1667       # but normal mime-type associations here:<br />
1668       &lt;Location /images/mixed&gt;<br />
1669       <span class="indent">
1670         ForceType None<br />
1671       </span>
1672       &lt;/Location&gt;
1673     </code></p></div>
1674
1675     <p>This directive primarily overrides the content types generated for
1676     static files served out of the filesystem.  For resources other than 
1677     static files, where the generator of the response typically specifies 
1678     a Content-Type, this directive has no effect.</p>
1679
1680
1681 </div>
1682 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
1683 <div class="directive-section"><h2><a name="GprofDir" id="GprofDir">GprofDir</a> <a name="gprofdir" id="gprofdir">Directiva</a></h2>
1684 <table class="directive">
1685 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Directory to write gmon.out profiling data to.  </td></tr>
1686 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>GprofDir <var>/tmp/gprof/</var>|<var>/tmp/gprof/</var>%</code></td></tr>
1687 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
1688 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
1689 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
1690 </table>
1691     <p>When the server has been compiled with gprof profiling support,
1692     <code class="directive">GprofDir</code> causes <code>gmon.out</code> files to
1693     be written to the specified directory when the process exits.  If the
1694     argument ends with a percent symbol ('%'), subdirectories are created
1695     for each process id.</p>
1696
1697     <p>This directive currently only works with the <code class="module"><a href="../mod/prefork.html">prefork</a></code> 
1698     MPM.</p>
1699
1700 </div>
1701 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
1702 <div class="directive-section"><h2><a name="HostnameLookups" id="HostnameLookups">HostnameLookups</a> <a name="hostnamelookups" id="hostnamelookups">Directiva</a></h2>
1703 <table class="directive">
1704 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Enables DNS lookups on client IP addresses</td></tr>
1705 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>HostnameLookups On|Off|Double</code></td></tr>
1706 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>HostnameLookups Off</code></td></tr>
1707 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory</td></tr>
1708 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
1709 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
1710 </table>
1711     <p>This directive enables DNS lookups so that host names can be
1712     logged (and passed to CGIs/SSIs in <code>REMOTE_HOST</code>).
1713     The value <code>Double</code> refers to doing double-reverse
1714     DNS lookup. That is, after a reverse lookup is performed, a forward
1715     lookup is then performed on that result. At least one of the IP
1716     addresses in the forward lookup must match the original
1717     address. (In "tcpwrappers" terminology this is called
1718     <code>PARANOID</code>.)</p>
1719
1720     <p>Regardless of the setting, when <code class="module"><a href="../mod/mod_authz_host.html">mod_authz_host</a></code> is
1721     used for controlling access by hostname, a double reverse lookup
1722     will be performed.  This is necessary for security. Note that the
1723     result of this double-reverse isn't generally available unless you
1724     set <code>HostnameLookups Double</code>. For example, if only
1725     <code>HostnameLookups On</code> and a request is made to an object
1726     that is protected by hostname restrictions, regardless of whether
1727     the double-reverse fails or not, CGIs will still be passed the
1728     single-reverse result in <code>REMOTE_HOST</code>.</p>
1729
1730     <p>The default is <code>Off</code> in order to save the network
1731     traffic for those sites that don't truly need the reverse
1732     lookups done. It is also better for the end users because they
1733     don't have to suffer the extra latency that a lookup entails.
1734     Heavily loaded sites should leave this directive
1735     <code>Off</code>, since DNS lookups can take considerable
1736     amounts of time. The utility <code class="program"><a href="../programs/logresolve.html">logresolve</a></code>, compiled by
1737     default to the <code>bin</code> subdirectory of your installation
1738     directory, can be used to look up host names from logged IP addresses
1739     offline.</p>
1740
1741 </div>
1742 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
1743 <div class="directive-section"><h2><a name="If" id="If">&lt;If&gt;</a> <a name="if" id="if">Directiva</a></h2>
1744 <table class="directive">
1745 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Contains directives that apply only if a condition is
1746 satisfied by a request at runtime</td></tr>
1747 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>&lt;If <var>expression</var>&gt; ... &lt;/If&gt;</code></td></tr>
1748 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
1749 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>All</td></tr>
1750 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
1751 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
1752 </table>
1753     <p>The <code class="directive">&lt;If&gt;</code> directive
1754     evaluates an expression at runtime, and applies the enclosed
1755     directives if and only if the expression evaluates to true.
1756     For example:</p>
1757
1758     <div class="example"><p><code>
1759         &lt;If "$req{Host} = ''"&gt;
1760     </code></p></div>
1761
1762     <p>would match HTTP/1.0 requests without a <var>Host:</var> header.</p>
1763
1764     <p>You may compare the value of any variable in the request headers
1765     ($req), response headers ($resp) or environment ($env) in your
1766     expression.</p>
1767
1768     <p>Apart from <code>=</code>, <code>If</code> can use the <code>IN</code>
1769     operator to compare if the expression is in a given range:</p>
1770
1771     <div class="example"><p><code>
1772         &lt;If %{REQUEST_METHOD} IN GET,HEAD,OPTIONS&gt;
1773     </code></p></div>
1774
1775
1776 <h3>Consulte también</h3>
1777 <ul>
1778 <li><a href="../expr.html">Expressions in Apache HTTP Server</a>,
1779 for a complete reference and more examples.</li>
1780 <li><a href="../sections.html">How &lt;Directory&gt;, &lt;Location&gt;,
1781     &lt;Files&gt; sections work</a> for an explanation of how these
1782     different sections are combined when a request is received.
1783     <code class="directive">&lt;If&gt;</code> has the same precedence
1784     and usage as <code class="directive">&lt;Files&gt;</code></li>
1785 </ul>
1786 </div>
1787 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
1788 <div class="directive-section"><h2><a name="IfDefine" id="IfDefine">&lt;IfDefine&gt;</a> <a name="ifdefine" id="ifdefine">Directiva</a></h2>
1789 <table class="directive">
1790 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Encloses directives that will be processed only
1791 if a test is true at startup</td></tr>
1792 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>&lt;IfDefine [!]<var>parameter-name</var>&gt; ...
1793     &lt;/IfDefine&gt;</code></td></tr>
1794 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
1795 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>All</td></tr>
1796 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
1797 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
1798 </table>
1799     <p>The <code>&lt;IfDefine <var>test</var>&gt;...&lt;/IfDefine&gt;
1800     </code> section is used to mark directives that are conditional. The
1801     directives within an <code class="directive">&lt;IfDefine&gt;</code>
1802     section are only processed if the <var>test</var> is true. If <var>
1803     test</var> is false, everything between the start and end markers is
1804     ignored.</p>
1805
1806     <p>The <var>test</var> in the <code class="directive">&lt;IfDefine&gt;</code> section directive can be one of two forms:</p>
1807
1808     <ul>
1809       <li><var>parameter-name</var></li>
1810
1811       <li><code>!</code><var>parameter-name</var></li>
1812     </ul>
1813
1814     <p>In the former case, the directives between the start and end
1815     markers are only processed if the parameter named
1816     <var>parameter-name</var> is defined. The second format reverses
1817     the test, and only processes the directives if
1818     <var>parameter-name</var> is <strong>not</strong> defined.</p>
1819
1820     <p>The <var>parameter-name</var> argument is a define as given on the
1821     <code class="program"><a href="../programs/httpd.html">httpd</a></code> command line via <code>-D<var>parameter</var>
1822     </code> at the time the server was started or by the <code class="directive"><a href="#define">Define</a></code> directive.</p>
1823
1824     <p><code class="directive">&lt;IfDefine&gt;</code> sections are
1825     nest-able, which can be used to implement simple
1826     multiple-parameter tests. Example:</p>
1827
1828     <div class="example"><p><code>
1829       httpd -DReverseProxy -DUseCache -DMemCache ...<br />
1830       <br />
1831       # httpd.conf<br />
1832       &lt;IfDefine ReverseProxy&gt;<br />
1833       <span class="indent">
1834         LoadModule proxy_module   modules/mod_proxy.so<br />
1835         LoadModule proxy_http_module   modules/mod_proxy_http.so<br />
1836         &lt;IfDefine UseCache&gt;<br />
1837         <span class="indent">
1838           LoadModule cache_module   modules/mod_cache.so<br />
1839           &lt;IfDefine MemCache&gt;<br />
1840           <span class="indent">
1841             LoadModule mem_cache_module   modules/mod_mem_cache.so<br />
1842           </span>
1843           &lt;/IfDefine&gt;<br />
1844           &lt;IfDefine !MemCache&gt;<br />
1845           <span class="indent">
1846             LoadModule cache_disk_module   modules/mod_cache_disk.so<br />
1847           </span>
1848           &lt;/IfDefine&gt;
1849         </span>
1850         &lt;/IfDefine&gt;
1851       </span>
1852       &lt;/IfDefine&gt;
1853     </code></p></div>
1854
1855 </div>
1856 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
1857 <div class="directive-section"><h2><a name="IfModule" id="IfModule">&lt;IfModule&gt;</a> <a name="ifmodule" id="ifmodule">Directiva</a></h2>
1858 <table class="directive">
1859 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Encloses directives that are processed conditional on the
1860 presence or absence of a specific module</td></tr>
1861 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>&lt;IfModule [!]<var>module-file</var>|<var>module-identifier</var>&gt; ...
1862     &lt;/IfModule&gt;</code></td></tr>
1863 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
1864 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>All</td></tr>
1865 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
1866 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
1867 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Module identifiers are available in version 2.1 and
1868 later.</td></tr>
1869 </table>
1870     <p>The <code>&lt;IfModule <var>test</var>&gt;...&lt;/IfModule&gt;</code>
1871     section is used to mark directives that are conditional on the presence of
1872     a specific module. The directives within an <code class="directive">&lt;IfModule&gt;</code> section are only processed if the <var>test</var>
1873     is true. If <var>test</var> is false, everything between the start and
1874     end markers is ignored.</p>
1875
1876     <p>The <var>test</var> in the <code class="directive">&lt;IfModule&gt;</code> section directive can be one of two forms:</p>
1877
1878     <ul>
1879       <li><var>module</var></li>
1880
1881       <li>!<var>module</var></li>
1882     </ul>
1883
1884     <p>In the former case, the directives between the start and end
1885     markers are only processed if the module named <var>module</var>
1886     is included in Apache httpd -- either compiled in or
1887     dynamically loaded using <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code>. The second format reverses the test,
1888     and only processes the directives if <var>module</var> is
1889     <strong>not</strong> included.</p>
1890
1891     <p>The <var>module</var> argument can be either the module identifier or
1892     the file name of the module, at the time it was compiled.  For example,
1893     <code>rewrite_module</code> is the identifier and
1894     <code>mod_rewrite.c</code> is the file name. If a module consists of
1895     several source files, use the name of the file containing the string
1896     <code>STANDARD20_MODULE_STUFF</code>.</p>
1897
1898     <p><code class="directive">&lt;IfModule&gt;</code> sections are
1899     nest-able, which can be used to implement simple multiple-module
1900     tests.</p>
1901
1902     <div class="note">This section should only be used if you need to have one
1903     configuration file that works whether or not a specific module
1904     is available. In normal operation, directives need not be
1905     placed in <code class="directive">&lt;IfModule&gt;</code>
1906     sections.</div>
1907
1908 </div>
1909 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
1910 <div class="directive-section"><h2><a name="Include" id="Include">Include</a> <a name="include" id="include">Directiva</a></h2>
1911 <table class="directive">
1912 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Includes other configuration files from within
1913 the server configuration files</td></tr>
1914 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>Include [<var>optional</var>|<var>strict</var>] <var>file-path</var>|<var>directory-path</var>|<var>wildcard</var></code></td></tr>
1915 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory</td></tr>
1916 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
1917 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
1918 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Wildcard matching available in 2.0.41 and later, directory
1919 wildcard matching available in 2.3.6 and later</td></tr>
1920 </table>
1921     <p>This directive allows inclusion of other configuration files
1922     from within the server configuration files.</p>
1923
1924     <p>Shell-style (<code>fnmatch()</code>) wildcard characters can be used
1925     in the filename or directory parts of the path to include several files
1926     at once, in alphabetical order. In addition, if
1927     <code class="directive">Include</code> points to a directory, rather than a file,
1928     Apache httpd will read all files in that directory and any subdirectory.
1929     However, including entire directories is not recommended, because it is
1930     easy to accidentally leave temporary files in a directory that can cause
1931     <code class="program"><a href="../programs/httpd.html">httpd</a></code> to fail. Instead, we encourage you to use the
1932     wildcard syntax shown below, to include files that match a particular
1933     pattern, such as *.conf, for example.</p>
1934
1935     <p>When a wildcard is specified for a <strong>file</strong> component of
1936     the path, and no file matches the wildcard, the
1937     <code class="directive"><a href="#include">Include</a></code>
1938     directive will be <strong>silently ignored</strong>. When a wildcard is
1939     specified for a <strong>directory</strong> component of the path, and
1940     no directory matches the wildcard, the
1941     <code class="directive"><a href="#include">Include</a></code> directive will
1942     <strong>fail with an error</strong> saying the directory cannot be found.
1943     </p>
1944
1945     <p>For further control over the behaviour of the server when no files or
1946     directories match, prefix the path with the modifiers <var>optional</var>
1947     or <var>strict</var>. If <var>optional</var> is specified, any wildcard
1948     file or directory that does not match will be silently ignored. If
1949     <var>strict</var> is specified, any wildcard file or directory that does
1950     not match at least one file will cause server startup to fail.</p>
1951
1952     <p>When a directory or file component of the path is
1953     specified exactly, and that directory or file does not exist,
1954     <code class="directive"><a href="#include">Include</a></code> directive will fail with an
1955     error saying the file or directory cannot be found.</p>
1956
1957     <p>The file path specified may be an absolute path, or may be relative 
1958     to the <code class="directive"><a href="#serverroot">ServerRoot</a></code> directory.</p>
1959
1960     <p>Examples:</p>
1961
1962     <div class="example"><p><code>
1963       Include /usr/local/apache2/conf/ssl.conf<br />
1964       Include /usr/local/apache2/conf/vhosts/*.conf
1965     </code></p></div>
1966
1967     <p>Or, providing paths relative to your <code class="directive"><a href="#serverroot">ServerRoot</a></code> directory:</p>
1968
1969     <div class="example"><p><code>
1970       Include conf/ssl.conf<br />
1971       Include conf/vhosts/*.conf
1972     </code></p></div>
1973
1974     <p>Wildcards may be included in the directory or file portion of the
1975     path. In the following example, the server will fail to load if no
1976     directories match conf/vhosts/*, but will load successfully if no
1977     files match *.conf.</p>
1978   
1979     <div class="example"><p><code>
1980       Include conf/vhosts/*/vhost.conf<br />
1981       Include conf/vhosts/*/*.conf
1982     </code></p></div>
1983
1984     <p>In this example, the server will fail to load if either
1985     conf/vhosts/* matches no directories, or if *.conf matches no files:</p>
1986
1987     <div class="example"><p><code>
1988       Include strict conf/vhosts/*/*.conf
1989     </code></p></div>
1990   
1991     <p>In this example, the server load successfully if either conf/vhosts/*
1992     matches no directories, or if *.conf matches no files:</p>
1993
1994     <div class="example"><p><code>
1995       Include optional conf/vhosts/*/*.conf
1996     </code></p></div>
1997
1998
1999 <h3>Consulte también</h3>
2000 <ul>
2001 <li><code class="program"><a href="../programs/apachectl.html">apachectl</a></code></li>
2002 </ul>
2003 </div>
2004 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2005 <div class="directive-section"><h2><a name="IncludeOptional" id="IncludeOptional">IncludeOptional</a> <a name="includeoptional" id="includeoptional">Directiva</a></h2>
2006 <table class="directive">
2007 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Includes other configuration files from within
2008 the server configuration files</td></tr>
2009 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>IncludeOptional <var>file-path</var>|<var>directory-path</var>|<var>wildcard</var></code></td></tr>
2010 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory</td></tr>
2011 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2012 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2013 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Available in 2.3.6 and later</td></tr>
2014 </table><p>The documentation for this directive has
2015             not been translated yet. Please have a look at the English
2016             version.</p><h3>Consulte también</h3>
2017 <ul>
2018 <li><code class="directive"><a href="#include">Include</a></code></li>
2019 <li><code class="program"><a href="../programs/apachectl.html">apachectl</a></code></li>
2020 </ul>
2021 </div>
2022 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2023 <div class="directive-section"><h2><a name="KeepAlive" id="KeepAlive">KeepAlive</a> <a name="keepalive" id="keepalive">Directiva</a></h2>
2024 <table class="directive">
2025 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Enables HTTP persistent connections</td></tr>
2026 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>KeepAlive On|Off</code></td></tr>
2027 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>KeepAlive On</code></td></tr>
2028 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
2029 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2030 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2031 </table>
2032     <p>The Keep-Alive extension to HTTP/1.0 and the persistent
2033     connection feature of HTTP/1.1 provide long-lived HTTP sessions
2034     which allow multiple requests to be sent over the same TCP
2035     connection. In some cases this has been shown to result in an
2036     almost 50% speedup in latency times for HTML documents with
2037     many images. To enable Keep-Alive connections, set
2038     <code>KeepAlive On</code>.</p>
2039
2040     <p>For HTTP/1.0 clients, Keep-Alive connections will only be
2041     used if they are specifically requested by a client. In
2042     addition, a Keep-Alive connection with an HTTP/1.0 client can
2043     only be used when the length of the content is known in
2044     advance. This implies that dynamic content such as CGI output,
2045     SSI pages, and server-generated directory listings will
2046     generally not use Keep-Alive connections to HTTP/1.0 clients.
2047     For HTTP/1.1 clients, persistent connections are the default
2048     unless otherwise specified. If the client requests it, chunked
2049     encoding will be used in order to send content of unknown
2050     length over persistent connections.</p>
2051
2052     <p>When a client uses a Keep-Alive connection it will be counted
2053     as a single "request" for the <code class="directive"><a href="../mod/mpm_common.html#maxconnectionsperchild">MaxConnectionsPerChild</a></code> directive, regardless
2054     of how many requests are sent using the connection.</p>
2055
2056 <h3>Consulte también</h3>
2057 <ul>
2058 <li><code class="directive"><a href="#maxkeepaliverequests">MaxKeepAliveRequests</a></code></li>
2059 </ul>
2060 </div>
2061 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2062 <div class="directive-section"><h2><a name="KeepAliveTimeout" id="KeepAliveTimeout">KeepAliveTimeout</a> <a name="keepalivetimeout" id="keepalivetimeout">Directiva</a></h2>
2063 <table class="directive">
2064 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Amount of time the server will wait for subsequent
2065 requests on a persistent connection</td></tr>
2066 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>KeepAliveTimeout <var>num</var>[ms]</code></td></tr>
2067 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>KeepAliveTimeout 5</code></td></tr>
2068 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
2069 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2070 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2071 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Specifying a value in milliseconds is available in 
2072 Apache httpd 2.3.2 and later</td></tr>
2073 </table>
2074     <p>The number of seconds Apache httpd will wait for a subsequent
2075     request before closing the connection. By adding a postfix of ms the
2076     timeout can be also set in milliseconds. Once a request has been
2077     received, the timeout value specified by the
2078     <code class="directive"><a href="#timeout">Timeout</a></code> directive applies.</p>
2079
2080     <p>Setting <code class="directive">KeepAliveTimeout</code> to a high value
2081     may cause performance problems in heavily loaded servers. The
2082     higher the timeout, the more server processes will be kept
2083     occupied waiting on connections with idle clients.</p>
2084     
2085     <p>In a name-based virtual host context, the value of the first
2086     defined virtual host (the default host) in a set of <code class="directive"><a href="#namevirtualhost">NameVirtualHost</a></code> will be used.
2087     The other values will be ignored.</p>
2088
2089 </div>
2090 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2091 <div class="directive-section"><h2><a name="Limit" id="Limit">&lt;Limit&gt;</a> <a name="limit" id="limit">Directiva</a></h2>
2092 <table class="directive">
2093 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Restrict enclosed access controls to only certain HTTP
2094 methods</td></tr>
2095 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>&lt;Limit <var>method</var> [<var>method</var>] ... &gt; ...
2096     &lt;/Limit&gt;</code></td></tr>
2097 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>directory, .htaccess</td></tr>
2098 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>AuthConfig, Limit</td></tr>
2099 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2100 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2101 </table>
2102     <p>Access controls are normally effective for
2103     <strong>all</strong> access methods, and this is the usual
2104     desired behavior. <strong>In the general case, access control
2105     directives should not be placed within a
2106     <code class="directive">&lt;Limit&gt;</code> section.</strong></p>
2107
2108     <p>The purpose of the <code class="directive">&lt;Limit&gt;</code>
2109     directive is to restrict the effect of the access controls to the
2110     nominated HTTP methods. For all other methods, the access
2111     restrictions that are enclosed in the <code class="directive">&lt;Limit&gt;</code> bracket <strong>will have no
2112     effect</strong>. The following example applies the access control
2113     only to the methods <code>POST</code>, <code>PUT</code>, and
2114     <code>DELETE</code>, leaving all other methods unprotected:</p>
2115
2116     <div class="example"><p><code>
2117       &lt;Limit POST PUT DELETE&gt;<br />
2118       <span class="indent">
2119         Require valid-user<br />
2120       </span>
2121       &lt;/Limit&gt;
2122     </code></p></div>
2123
2124     <p>The method names listed can be one or more of: <code>GET</code>,
2125     <code>POST</code>, <code>PUT</code>, <code>DELETE</code>,
2126     <code>CONNECT</code>, <code>OPTIONS</code>,
2127     <code>PATCH</code>, <code>PROPFIND</code>, <code>PROPPATCH</code>,
2128     <code>MKCOL</code>, <code>COPY</code>, <code>MOVE</code>,
2129     <code>LOCK</code>, and <code>UNLOCK</code>. <strong>The method name is
2130     case-sensitive.</strong> If <code>GET</code> is used it will also
2131     restrict <code>HEAD</code> requests. The <code>TRACE</code> method
2132     cannot be limited (see <code class="directive"><a href="#traceenable">TraceEnable</a></code>).</p>
2133
2134     <div class="warning">A <code class="directive"><a href="#limitexcept">&lt;LimitExcept&gt;</a></code> section should always be
2135     used in preference to a <code class="directive">&lt;Limit&gt;</code>
2136     section when restricting access, since a <code class="directive"><a href="#limitexcept">&lt;LimitExcept&gt;</a></code> section provides protection
2137     against arbitrary methods.</div>
2138
2139     <p>The <code class="directive">&lt;Limit&gt;</code> and
2140     <code class="directive"><a href="#limitexcept">&lt;LimitExcept&gt;</a></code>
2141     directives may be nested.  In this case, each successive level of
2142     <code class="directive">&lt;Limit&gt;</code> or <code class="directive"><a href="#limitexcept">&lt;LimitExcept&gt;</a></code> directives must
2143     further restrict the set of methods to which access controls apply.</p>
2144
2145     <div class="warning">When using
2146     <code class="directive">&lt;Limit&gt;</code> or
2147     <code class="directive">&lt;LimitExcept&gt;</code> directives with
2148     the <code class="directive"><a href="../mod/mod_authz_core.html#require">Require</a></code> directive,
2149     note that the first <code class="directive"><a href="../mod/mod_authz_core.html#require">Require</a></code>
2150     to succeed authorizes the request, regardless of the presence of other
2151     <code class="directive"><a href="../mod/mod_authz_core.html#require">Require</a></code> directives.</div>
2152
2153     <p>For example, given the following configuration, all users will
2154     be authorized for <code>POST</code> requests, and the
2155     <code>Require group editors</code> directive will be ignored
2156     in all cases:</p>
2157
2158     <div class="example"><p><code>
2159       &lt;LimitExcept GET&gt;
2160       <span class="indent">
2161         Require valid-user
2162       </span> 
2163       &lt;/LimitExcept&gt;<br />
2164       &lt;Limit POST&gt;
2165       <span class="indent">
2166         Require group editors
2167       </span> 
2168       &lt;/Limit&gt;
2169     </code></p></div>
2170
2171 </div>
2172 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2173 <div class="directive-section"><h2><a name="LimitExcept" id="LimitExcept">&lt;LimitExcept&gt;</a> <a name="limitexcept" id="limitexcept">Directiva</a></h2>
2174 <table class="directive">
2175 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Restrict access controls to all HTTP methods
2176 except the named ones</td></tr>
2177 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>&lt;LimitExcept <var>method</var> [<var>method</var>] ... &gt; ...
2178     &lt;/LimitExcept&gt;</code></td></tr>
2179 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>directory, .htaccess</td></tr>
2180 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>AuthConfig, Limit</td></tr>
2181 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2182 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2183 </table>
2184     <p><code class="directive">&lt;LimitExcept&gt;</code> and
2185     <code>&lt;/LimitExcept&gt;</code> are used to enclose
2186     a group of access control directives which will then apply to any
2187     HTTP access method <strong>not</strong> listed in the arguments;
2188     i.e., it is the opposite of a <code class="directive"><a href="#limit">&lt;Limit&gt;</a></code> section and can be used to control
2189     both standard and nonstandard/unrecognized methods. See the
2190     documentation for <code class="directive"><a href="#limit">&lt;Limit&gt;</a></code> for more details.</p>
2191
2192     <p>For example:</p>
2193
2194     <div class="example"><p><code>
2195       &lt;LimitExcept POST GET&gt;<br />
2196       <span class="indent">
2197         Require valid-user<br />
2198       </span>
2199       &lt;/LimitExcept&gt;
2200     </code></p></div>
2201
2202
2203 </div>
2204 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2205 <div class="directive-section"><h2><a name="LimitInternalRecursion" id="LimitInternalRecursion">LimitInternalRecursion</a> <a name="limitinternalrecursion" id="limitinternalrecursion">Directiva</a></h2>
2206 <table class="directive">
2207 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Determine maximum number of internal redirects and nested
2208 subrequests</td></tr>
2209 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>LimitInternalRecursion <var>number</var> [<var>number</var>]</code></td></tr>
2210 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>LimitInternalRecursion 10</code></td></tr>
2211 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
2212 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2213 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2214 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Available in Apache httpd 2.0.47 and later</td></tr>
2215 </table>
2216     <p>An internal redirect happens, for example, when using the <code class="directive"><a href="../mod/mod_actions.html#action">Action</a></code> directive, which internally
2217     redirects the original request to a CGI script. A subrequest is Apache httpd's
2218     mechanism to find out what would happen for some URI if it were requested.
2219     For example, <code class="module"><a href="../mod/mod_dir.html">mod_dir</a></code> uses subrequests to look for the
2220     files listed in the <code class="directive"><a href="../mod/mod_dir.html#directoryindex">DirectoryIndex</a></code>
2221     directive.</p>
2222
2223     <p><code class="directive">LimitInternalRecursion</code> prevents the server
2224     from crashing when entering an infinite loop of internal redirects or
2225     subrequests. Such loops are usually caused by misconfigurations.</p>
2226
2227     <p>The directive stores two different limits, which are evaluated on
2228     per-request basis. The first <var>number</var> is the maximum number of
2229     internal redirects, that may follow each other. The second <var>number</var>
2230     determines, how deep subrequests may be nested. If you specify only one
2231     <var>number</var>, it will be assigned to both limits.</p>
2232
2233     <div class="example"><h3>Example</h3><p><code>
2234       LimitInternalRecursion 5
2235     </code></p></div>
2236
2237 </div>
2238 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2239 <div class="directive-section"><h2><a name="LimitRequestBody" id="LimitRequestBody">LimitRequestBody</a> <a name="limitrequestbody" id="limitrequestbody">Directiva</a></h2>
2240 <table class="directive">
2241 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Restricts the total size of the HTTP request body sent
2242 from the client</td></tr>
2243 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>LimitRequestBody <var>bytes</var></code></td></tr>
2244 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>LimitRequestBody 0</code></td></tr>
2245 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
2246 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>All</td></tr>
2247 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2248 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2249 </table>
2250     <p>This directive specifies the number of <var>bytes</var> from 0
2251     (meaning unlimited) to 2147483647 (2GB) that are allowed in a
2252     request body. See the note below for the limited applicability
2253     to proxy requests.</p>
2254
2255     <p>The <code class="directive">LimitRequestBody</code> directive allows
2256     the user to set a limit on the allowed size of an HTTP request
2257     message body within the context in which the directive is given
2258     (server, per-directory, per-file or per-location). If the client
2259     request exceeds that limit, the server will return an error
2260     response instead of servicing the request. The size of a normal
2261     request message body will vary greatly depending on the nature of
2262     the resource and the methods allowed on that resource. CGI scripts
2263     typically use the message body for retrieving form information.
2264     Implementations of the <code>PUT</code> method will require
2265     a value at least as large as any representation that the server
2266     wishes to accept for that resource.</p>
2267
2268     <p>This directive gives the server administrator greater
2269     control over abnormal client request behavior, which may be
2270     useful for avoiding some forms of denial-of-service
2271     attacks.</p>
2272
2273     <p>If, for example, you are permitting file upload to a particular
2274     location, and wish to limit the size of the uploaded file to 100K,
2275     you might use the following directive:</p>
2276
2277     <div class="example"><p><code>
2278       LimitRequestBody 102400
2279     </code></p></div>
2280     
2281     <div class="note"><p>For a full description of how this directive is interpreted by 
2282     proxy requests, see the <code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code> documentation.</p>
2283     </div>
2284
2285
2286 </div>
2287 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2288 <div class="directive-section"><h2><a name="LimitRequestFields" id="LimitRequestFields">LimitRequestFields</a> <a name="limitrequestfields" id="limitrequestfields">Directiva</a></h2>
2289 <table class="directive">
2290 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Limits the number of HTTP request header fields that
2291 will be accepted from the client</td></tr>
2292 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>LimitRequestFields <var>number</var></code></td></tr>
2293 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>LimitRequestFields 100</code></td></tr>
2294 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
2295 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2296 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2297 </table>
2298     <p><var>Number</var> is an integer from 0 (meaning unlimited) to
2299     32767. The default value is defined by the compile-time
2300     constant <code>DEFAULT_LIMIT_REQUEST_FIELDS</code> (100 as
2301     distributed).</p>
2302
2303     <p>The <code class="directive">LimitRequestFields</code> directive allows
2304     the server administrator to modify the limit on the number of
2305     request header fields allowed in an HTTP request. A server needs
2306     this value to be larger than the number of fields that a normal
2307     client request might include. The number of request header fields
2308     used by a client rarely exceeds 20, but this may vary among
2309     different client implementations, often depending upon the extent
2310     to which a user has configured their browser to support detailed
2311     content negotiation. Optional HTTP extensions are often expressed
2312     using request header fields.</p>
2313
2314     <p>This directive gives the server administrator greater
2315     control over abnormal client request behavior, which may be
2316     useful for avoiding some forms of denial-of-service attacks.
2317     The value should be increased if normal clients see an error
2318     response from the server that indicates too many fields were
2319     sent in the request.</p>
2320
2321     <p>For example:</p>
2322
2323     <div class="example"><p><code>
2324       LimitRequestFields 50
2325     </code></p></div>
2326
2327      <div class="warning"><h3>Warning</h3>
2328      <p> When name-based virtual hosting is used, the value for this 
2329      directive is taken from the default (first-listed) virtual host for the
2330      <code class="directive">NameVirtualHost</code> the connection was mapped to.</p>
2331      </div>
2332
2333
2334 </div>
2335 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2336 <div class="directive-section"><h2><a name="LimitRequestFieldSize" id="LimitRequestFieldSize">LimitRequestFieldSize</a> <a name="limitrequestfieldsize" id="limitrequestfieldsize">Directiva</a></h2>
2337 <table class="directive">
2338 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Limits the size of the HTTP request header allowed from the
2339 client</td></tr>
2340 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>LimitRequestFieldSize <var>bytes</var></code></td></tr>
2341 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>LimitRequestFieldSize 8190</code></td></tr>
2342 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
2343 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2344 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2345 </table>
2346     <p>This directive specifies the number of <var>bytes</var>
2347     that will be allowed in an HTTP request header.</p>
2348
2349     <p>The <code class="directive">LimitRequestFieldSize</code> directive
2350     allows the server administrator to reduce or increase the limit 
2351     on the allowed size of an HTTP request header field. A server
2352     needs this value to be large enough to hold any one header field 
2353     from a normal client request. The size of a normal request header 
2354     field will vary greatly among different client implementations, 
2355     often depending upon the extent to which a user has configured
2356     their browser to support detailed content negotiation. SPNEGO
2357     authentication headers can be up to 12392 bytes.</p>
2358
2359     <p>This directive gives the server administrator greater
2360     control over abnormal client request behavior, which may be
2361     useful for avoiding some forms of denial-of-service attacks.</p>
2362
2363     <p>For example:</p>
2364
2365     <div class="example"><p><code>
2366       LimitRequestFieldSize 4094
2367     </code></p></div>
2368
2369     <div class="note">Under normal conditions, the value should not be changed from
2370     the default.</div>
2371
2372     <div class="warning"><h3>Warning</h3>
2373     <p> When name-based virtual hosting is used, the value for this 
2374     directive is taken from the default (first-listed) virtual host for the
2375     <code class="directive">NameVirtualHost</code> the connection was mapped to.</p>
2376     </div>
2377
2378
2379 </div>
2380 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2381 <div class="directive-section"><h2><a name="LimitRequestLine" id="LimitRequestLine">LimitRequestLine</a> <a name="limitrequestline" id="limitrequestline">Directiva</a></h2>
2382 <table class="directive">
2383 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Limit the size of the HTTP request line that will be accepted
2384 from the client</td></tr>
2385 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>LimitRequestLine <var>bytes</var></code></td></tr>
2386 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>LimitRequestLine 8190</code></td></tr>
2387 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
2388 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2389 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2390 </table>
2391     <p>This directive sets the number of <var>bytes</var> that will be 
2392     allowed on the HTTP request-line.</p>
2393
2394     <p>The <code class="directive">LimitRequestLine</code> directive allows
2395     the server administrator to reduce or increase the limit on the allowed size
2396     of a client's HTTP request-line. Since the request-line consists of the
2397     HTTP method, URI, and protocol version, the
2398     <code class="directive">LimitRequestLine</code> directive places a
2399     restriction on the length of a request-URI allowed for a request
2400     on the server. A server needs this value to be large enough to
2401     hold any of its resource names, including any information that
2402     might be passed in the query part of a <code>GET</code> request.</p>
2403
2404     <p>This directive gives the server administrator greater
2405     control over abnormal client request behavior, which may be
2406     useful for avoiding some forms of denial-of-service attacks.</p>
2407
2408     <p>For example:</p>
2409
2410     <div class="example"><p><code>
2411       LimitRequestLine 4094
2412     </code></p></div>
2413
2414     <div class="note">Under normal conditions, the value should not be changed from
2415     the default.</div>
2416
2417     <div class="warning"><h3>Warning</h3>
2418     <p> When name-based virtual hosting is used, the value for this 
2419     directive is taken from the default (first-listed) virtual host for the
2420     <code class="directive">NameVirtualHost</code> the connection was mapped to.</p>
2421     </div>
2422
2423
2424 </div>
2425 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2426 <div class="directive-section"><h2><a name="LimitXMLRequestBody" id="LimitXMLRequestBody">LimitXMLRequestBody</a> <a name="limitxmlrequestbody" id="limitxmlrequestbody">Directiva</a></h2>
2427 <table class="directive">
2428 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Limits the size of an XML-based request body</td></tr>
2429 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>LimitXMLRequestBody <var>bytes</var></code></td></tr>
2430 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>LimitXMLRequestBody 1000000</code></td></tr>
2431 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
2432 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>All</td></tr>
2433 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2434 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2435 </table>
2436     <p>Limit (in bytes) on maximum size of an XML-based request
2437     body. A value of <code>0</code> will disable any checking.</p>
2438
2439     <p>Example:</p>
2440
2441     <div class="example"><p><code>
2442       LimitXMLRequestBody 0
2443     </code></p></div>
2444
2445
2446 </div>
2447 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2448 <div class="directive-section"><h2><a name="Location" id="Location">&lt;Location&gt;</a> <a name="location" id="location">Directiva</a></h2>
2449 <table class="directive">
2450 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Applies the enclosed directives only to matching
2451 URLs</td></tr>
2452 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>&lt;Location
2453     <var>URL-path</var>|<var>URL</var>&gt; ... &lt;/Location&gt;</code></td></tr>
2454 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
2455 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2456 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2457 </table>
2458     <p>The <code class="directive">&lt;Location&gt;</code> directive
2459     limits the scope of the enclosed directives by URL. It is similar to the
2460     <code class="directive"><a href="#directory">&lt;Directory&gt;</a></code>
2461     directive, and starts a subsection which is terminated with a
2462     <code>&lt;/Location&gt;</code> directive. <code class="directive">&lt;Location&gt;</code> sections are processed in the
2463     order they appear in the configuration file, after the <code class="directive"><a href="#directory">&lt;Directory&gt;</a></code> sections and
2464     <code>.htaccess</code> files are read, and after the <code class="directive"><a href="#files">&lt;Files&gt;</a></code> sections.</p>
2465
2466     <p><code class="directive">&lt;Location&gt;</code> sections operate
2467     completely outside the filesystem.  This has several consequences.
2468     Most importantly, <code class="directive">&lt;Location&gt;</code>
2469     directives should not be used to control access to filesystem
2470     locations.  Since several different URLs may map to the same
2471     filesystem location, such access controls may by circumvented.</p>
2472
2473     <p>The enclosed directives will be applied to the request if the path component
2474     of the URL meets <em>any</em> of the following criteria:
2475     </p>
2476     <ul>
2477       <li>The specified location matches exactly the path component of the URL.
2478       </li>
2479       <li>The specified location, which ends in a forward slash, is a prefix 
2480       of the path component of the URL (treated as a context root).
2481       </li>
2482       <li>The specified location, with the addition of a trailing slash, is a 
2483       prefix of the path component of the URL (also treated as a context root).
2484       </li>
2485     </ul>
2486     <p>
2487     In the example below, where no trailing slash is used, requests to 
2488     /private1, /private1/ and /private1/file.txt will have the enclosed
2489     directives applied, but /private1other would not. 
2490     </p>
2491     <div class="example"><p><code>
2492       &lt;Location /private1&gt;
2493           ...
2494     </code></p></div>
2495     <p>
2496     In the example below, where a trailing slash is used, requests to 
2497     /private2/ and /private2/file.txt will have the enclosed
2498     directives applied, but /private2 and /private2other would not. 
2499     </p>
2500     <div class="example"><p><code>
2501       &lt;Location /private2<em>/</em>&gt;
2502           ...
2503     </code></p></div>
2504
2505     <div class="note"><h3>When to use <code class="directive">&lt;Location&gt;</code></h3>
2506
2507     <p>Use <code class="directive">&lt;Location&gt;</code> to apply
2508     directives to content that lives outside the filesystem.  For
2509     content that lives in the filesystem, use <code class="directive"><a href="#directory">&lt;Directory&gt;</a></code> and <code class="directive"><a href="#files">&lt;Files&gt;</a></code>.  An exception is
2510     <code>&lt;Location /&gt;</code>, which is an easy way to 
2511     apply a configuration to the entire server.</p>
2512     </div>
2513
2514     <p>For all origin (non-proxy) requests, the URL to be matched is a
2515     URL-path of the form <code>/path/</code>.  <em>No scheme, hostname,
2516     port, or query string may be included.</em>  For proxy requests, the
2517     URL to be matched is of the form
2518     <code>scheme://servername/path</code>, and you must include the
2519     prefix.</p>
2520
2521     <p>The URL may use wildcards. In a wild-card string, <code>?</code> matches
2522     any single character, and <code>*</code> matches any sequences of
2523     characters. Neither wildcard character matches a / in the URL-path.</p>
2524
2525     <p><a class="glossarylink" href="../glossary.html#regex" title="ver glosario">Regular expressions</a>
2526     can also be used, with the addition of the <code>~</code> 
2527     character. For example:</p>
2528
2529     <div class="example"><p><code>
2530       &lt;Location ~ "/(extra|special)/data"&gt;
2531     </code></p></div>
2532
2533     <p>would match URLs that contained the substring <code>/extra/data</code>
2534     or <code>/special/data</code>. The directive <code class="directive"><a href="#locationmatch">&lt;LocationMatch&gt;</a></code> behaves
2535     identical to the regex version of <code class="directive">&lt;Location&gt;</code>, and is preferred, for the
2536     simple reason that <code>~</code> is hard to distinguish from
2537     <code>-</code> in many fonts.</p>
2538
2539     <p>The <code class="directive">&lt;Location&gt;</code>
2540     functionality is especially useful when combined with the
2541     <code class="directive"><a href="#sethandler">SetHandler</a></code>
2542     directive. For example, to enable status requests, but allow them
2543     only from browsers at <code>example.com</code>, you might use:</p>
2544
2545     <div class="example"><p><code>
2546       &lt;Location /status&gt;<br />
2547       <span class="indent">
2548         SetHandler server-status<br />
2549         Require host example.com<br />
2550       </span>
2551       &lt;/Location&gt;
2552     </code></p></div>
2553
2554     <div class="note"><h3>Note about / (slash)</h3>
2555       <p>The slash character has special meaning depending on where in a
2556       URL it appears. People may be used to its behavior in the filesystem
2557       where multiple adjacent slashes are frequently collapsed to a single
2558       slash (<em>i.e.</em>, <code>/home///foo</code> is the same as
2559       <code>/home/foo</code>). In URL-space this is not necessarily true.
2560       The <code class="directive"><a href="#locationmatch">&lt;LocationMatch&gt;</a></code>
2561       directive and the regex version of <code class="directive">&lt;Location&gt;</code> require you to explicitly specify multiple
2562       slashes if that is your intention.</p>
2563
2564       <p>For example, <code>&lt;LocationMatch ^/abc&gt;</code> would match
2565       the request URL <code>/abc</code> but not the request URL <code>
2566       //abc</code>. The (non-regex) <code class="directive">&lt;Location&gt;</code> directive behaves similarly when used for
2567       proxy requests. But when (non-regex) <code class="directive">&lt;Location&gt;</code> is used for non-proxy requests it will
2568       implicitly match multiple slashes with a single slash. For example,
2569       if you specify <code>&lt;Location /abc/def&gt;</code> and the
2570       request is to <code>/abc//def</code> then it will match.</p>
2571     </div>
2572
2573 <h3>Consulte también</h3>
2574 <ul>
2575 <li><a href="../sections.html">How &lt;Directory&gt;, &lt;Location&gt;
2576     and &lt;Files&gt; sections work</a> for an explanation of how these
2577     different sections are combined when a request is received.</li>
2578 <li><code class="directive"><a href="#locationmatch">LocationMatch</a></code></li>
2579 </ul>
2580 </div>
2581 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2582 <div class="directive-section"><h2><a name="LocationMatch" id="LocationMatch">&lt;LocationMatch&gt;</a> <a name="locationmatch" id="locationmatch">Directiva</a></h2>
2583 <table class="directive">
2584 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Applies the enclosed directives only to regular-expression
2585 matching URLs</td></tr>
2586 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>&lt;LocationMatch
2587     <var>regex</var>&gt; ... &lt;/LocationMatch&gt;</code></td></tr>
2588 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
2589 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2590 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2591 </table>
2592     <p>The <code class="directive">&lt;LocationMatch&gt;</code> directive
2593     limits the scope of the enclosed directives by URL, in an identical manner
2594     to <code class="directive"><a href="#location">&lt;Location&gt;</a></code>. However,
2595     it takes a <a class="glossarylink" href="../glossary.html#regex" title="ver glosario">regular expression</a>
2596     as an argument instead of a simple string. For example:</p>
2597
2598     <div class="example"><p><code>
2599       &lt;LocationMatch "/(extra|special)/data"&gt;
2600     </code></p></div>
2601
2602     <p>would match URLs that contained the substring <code>/extra/data</code>
2603     or <code>/special/data</code>.</p>
2604
2605 <h3>Consulte también</h3>
2606 <ul>
2607 <li><a href="../sections.html">How &lt;Directory&gt;, &lt;Location&gt;
2608     and &lt;Files&gt; sections work</a> for an explanation of how these
2609     different sections are combined when a request is received</li>
2610 </ul>
2611 </div>
2612 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2613 <div class="directive-section"><h2><a name="LogLevel" id="LogLevel">LogLevel</a> <a name="loglevel" id="loglevel">Directiva</a></h2>
2614 <table class="directive">
2615 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Controls the verbosity of the ErrorLog</td></tr>
2616 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>LogLevel [<var>module</var>:]<var>level</var>
2617     [<var>module</var>:<var>level</var>] ...
2618 </code></td></tr>
2619 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>LogLevel warn</code></td></tr>
2620 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory</td></tr>
2621 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2622 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2623 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Per-module and per-directory configuration is available in
2624     Apache HTTP Server 2.3.6 and later</td></tr>
2625 </table>
2626     <p><code class="directive">LogLevel</code> adjusts the verbosity of the
2627     messages recorded in the error logs (see <code class="directive"><a href="#errorlog">ErrorLog</a></code> directive). The following
2628     <var>level</var>s are available, in order of decreasing
2629     significance:</p>
2630
2631     <table class="bordered">
2632     
2633       <tr>
2634         <th><strong>Level</strong> </th>
2635
2636         <th><strong>Description</strong> </th>
2637
2638         <th><strong>Example</strong> </th>
2639       </tr>
2640
2641       <tr>
2642         <td><code>emerg</code> </td>
2643
2644         <td>Emergencies - system is unusable.</td>
2645
2646         <td>"Child cannot open lock file. Exiting"</td>
2647       </tr>
2648
2649       <tr>
2650         <td><code>alert</code> </td>
2651
2652         <td>Action must be taken immediately.</td>
2653
2654         <td>"getpwuid: couldn't determine user name from uid"</td>
2655       </tr>
2656
2657       <tr>
2658         <td><code>crit</code> </td>
2659
2660         <td>Critical Conditions.</td>
2661
2662         <td>"socket: Failed to get a socket, exiting child"</td>
2663       </tr>
2664
2665       <tr>
2666         <td><code>error</code> </td>
2667
2668         <td>Error conditions.</td>
2669
2670         <td>"Premature end of script headers"</td>
2671       </tr>
2672
2673       <tr>
2674         <td><code>warn</code> </td>
2675
2676         <td>Warning conditions.</td>
2677
2678         <td>"child process 1234 did not exit, sending another
2679         SIGHUP"</td>
2680       </tr>
2681
2682       <tr>
2683         <td><code>notice</code> </td>
2684
2685         <td>Normal but significant condition.</td>
2686
2687         <td>"httpd: caught SIGBUS, attempting to dump core in
2688         ..."</td>
2689       </tr>
2690
2691       <tr>
2692         <td><code>info</code> </td>
2693
2694         <td>Informational.</td>
2695
2696         <td>"Server seems busy, (you may need to increase
2697         StartServers, or Min/MaxSpareServers)..."</td>
2698       </tr>
2699
2700       <tr>
2701         <td><code>debug</code> </td>
2702
2703         <td>Debug-level messages</td>
2704
2705         <td>"Opening config file ..."</td>
2706       </tr>
2707       <tr>
2708         <td><code>trace1</code> </td>
2709
2710         <td>Trace messages</td>
2711
2712         <td>"proxy: FTP: control connection complete"</td>
2713       </tr>
2714       <tr>
2715         <td><code>trace2</code> </td>
2716
2717         <td>Trace messages</td>
2718
2719         <td>"proxy: CONNECT: sending the CONNECT request to the remote proxy"</td>
2720       </tr>
2721       <tr>
2722         <td><code>trace3</code> </td>
2723
2724         <td>Trace messages</td>
2725
2726         <td>"openssl: Handshake: start"</td>
2727       </tr>
2728       <tr>
2729         <td><code>trace4</code> </td>
2730
2731         <td>Trace messages</td>
2732
2733         <td>"read from buffered SSL brigade, mode 0, 17 bytes"</td>
2734       </tr>
2735       <tr>
2736         <td><code>trace5</code> </td>
2737
2738         <td>Trace messages</td>
2739
2740         <td>"map lookup FAILED: map=rewritemap key=keyname"</td>
2741       </tr>
2742       <tr>
2743         <td><code>trace6</code> </td>
2744
2745         <td>Trace messages</td>
2746
2747         <td>"cache lookup FAILED, forcing new map lookup"</td>
2748       </tr>
2749       <tr>
2750         <td><code>trace7</code> </td>
2751
2752         <td>Trace messages, dumping large amounts of data</td>
2753
2754         <td>"| 0000: 02 23 44 30 13 40 ac 34 df 3d bf 9a 19 49 39 15 |"</td>
2755       </tr>
2756       <tr>
2757         <td><code>trace8</code> </td>
2758
2759         <td>Trace messages, dumping large amounts of data</td>
2760
2761         <td>"| 0000: 02 23 44 30 13 40 ac 34 df 3d bf 9a 19 49 39 15 |"</td>
2762       </tr>
2763     </table>
2764
2765     <p>When a particular level is specified, messages from all
2766     other levels of higher significance will be reported as well.
2767     <em>E.g.</em>, when <code>LogLevel info</code> is specified,
2768     then messages with log levels of <code>notice</code> and
2769     <code>warn</code> will also be posted.</p>
2770
2771     <p>Using a level of at least <code>crit</code> is
2772     recommended.</p>
2773
2774     <p>For example:</p>
2775
2776     <div class="example"><p><code>
2777       LogLevel notice
2778     </code></p></div>
2779
2780     <div class="note"><h3>Note</h3>
2781       <p>When logging to a regular file messages of the level
2782       <code>notice</code> cannot be suppressed and thus are always
2783       logged. However, this doesn't apply when logging is done
2784       using <code>syslog</code>.</p>
2785     </div>
2786
2787     <p>Specifying a level without a module name will reset the level
2788     for all modules to that level.  Specifying a level with a module
2789     name will set the level for that module only. It is possible to
2790     use the module source file name, the module identifier, or the
2791     module identifier with the trailing <code>_module</code> omitted
2792     as module specification. This means the following three specifications
2793     are equivalent:</p>
2794
2795     <div class="example"><p><code>
2796       LogLevel info ssl:warn<br />
2797       LogLevel info mod_ssl.c:warn<br />
2798       LogLevel info ssl_module:warn<br />
2799     </code></p></div>
2800
2801     <p>It is also possible to change the level per directory:</p>
2802
2803     <div class="example"><p><code>
2804         LogLevel info<br />
2805         &lt;Directory /usr/local/apache/htdocs/app&gt;<br />
2806         &nbsp; LogLevel debug<br />
2807         &lt;/Files&gt;
2808     </code></p></div>
2809
2810     <div class="note">
2811         Per directory loglevel configuration only affects messages that are
2812         logged after the request has been parsed and that are associated with
2813         the request. Log messages which are associated with the connection or
2814         the server are not affected.
2815     </div>
2816
2817 </div>
2818 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2819 <div class="directive-section"><h2><a name="LogLevelOverride" id="LogLevelOverride">LogLevelOverride</a> <a name="logleveloverride" id="logleveloverride">Directiva</a></h2>
2820 <table class="directive">
2821 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Override the verbosity of the ErrorLog for certain clients</td></tr>
2822 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>LogLevel <var>ipaddress</var>[/<var>prefixlen</var>]
2823     [<var>module</var>:]<var>level</var> [<var>module</var>:<var>level</var>] ...
2824 </code></td></tr>
2825 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>unset</code></td></tr>
2826 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
2827 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2828 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2829 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Available in Apache HTTP Server 2.5.0 and later</td></tr>
2830 </table><p>The documentation for this directive has
2831             not been translated yet. Please have a look at the English
2832             version.</p><h3>Consulte también</h3>
2833 <ul>
2834 <li><code class="directive"><a href="#loglevel">LogLevel</a></code></li>
2835 </ul>
2836 </div>
2837 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2838 <div class="directive-section"><h2><a name="MaxKeepAliveRequests" id="MaxKeepAliveRequests">MaxKeepAliveRequests</a> <a name="maxkeepaliverequests" id="maxkeepaliverequests">Directiva</a></h2>
2839 <table class="directive">
2840 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Number of requests allowed on a persistent
2841 connection</td></tr>
2842 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>MaxKeepAliveRequests <var>number</var></code></td></tr>
2843 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>MaxKeepAliveRequests 100</code></td></tr>
2844 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
2845 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2846 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2847 </table>
2848     <p>The <code class="directive">MaxKeepAliveRequests</code> directive
2849     limits the number of requests allowed per connection when
2850     <code class="directive"><a href="#keepalive">KeepAlive</a></code> is on. If it is
2851     set to <code>0</code>, unlimited requests will be allowed. We
2852     recommend that this setting be kept to a high value for maximum
2853     server performance.</p>
2854
2855     <p>For example:</p>
2856
2857     <div class="example"><p><code>
2858       MaxKeepAliveRequests 500
2859     </code></p></div>
2860
2861 </div>
2862 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2863 <div class="directive-section"><h2><a name="MaxRangeOverlaps" id="MaxRangeOverlaps">MaxRangeOverlaps</a> <a name="maxrangeoverlaps" id="maxrangeoverlaps">Directiva</a></h2>
2864 <table class="directive">
2865 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Number of overlapping ranges (eg: <code>100-200,150-300</code>) allowed before returning the complete
2866         resource </td></tr>
2867 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>MaxRangeOverlaps default | unlimited | none | <var>number-of-ranges</var></code></td></tr>
2868 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>MaxRangeOverlaps 20</code></td></tr>
2869 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory</td></tr>
2870 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2871 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2872 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Available in Apache HTTP Server 2.3.15 and later</td></tr>
2873 </table><p>The documentation for this directive has
2874             not been translated yet. Please have a look at the English
2875             version.</p></div>
2876 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2877 <div class="directive-section"><h2><a name="MaxRangeReversals" id="MaxRangeReversals">MaxRangeReversals</a> <a name="maxrangereversals" id="maxrangereversals">Directiva</a></h2>
2878 <table class="directive">
2879 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Number of range reversals (eg: <code>100-200,50-70</code>) allowed before returning the complete
2880         resource </td></tr>
2881 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>MaxRangeReversals default | unlimited | none | <var>number-of-ranges</var></code></td></tr>
2882 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>MaxRangeReversals 20</code></td></tr>
2883 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory</td></tr>
2884 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2885 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2886 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Available in Apache HTTP Server 2.3.15 and later</td></tr>
2887 </table><p>The documentation for this directive has
2888             not been translated yet. Please have a look at the English
2889             version.</p></div>
2890 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2891 <div class="directive-section"><h2><a name="MaxRanges" id="MaxRanges">MaxRanges</a> <a name="maxranges" id="maxranges">Directiva</a></h2>
2892 <table class="directive">
2893 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Number of ranges allowed before returning the complete
2894 resource </td></tr>
2895 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>MaxRanges default | unlimited | none | <var>number-of-ranges</var></code></td></tr>
2896 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>MaxRanges 200</code></td></tr>
2897 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory</td></tr>
2898 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2899 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2900 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Available in Apache HTTP Server 2.3.15 and later</td></tr>
2901 </table><p>The documentation for this directive has
2902             not been translated yet. Please have a look at the English
2903             version.</p></div>
2904 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2905 <div class="directive-section"><h2><a name="MergeTrailers" id="MergeTrailers">MergeTrailers</a> <a name="mergetrailers" id="mergetrailers">Directiva</a></h2>
2906 <table class="directive">
2907 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Determines whether trailers are merged into headers</td></tr>
2908 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>MergeTrailers [on|off]</code></td></tr>
2909 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>MergeTrailers off</code></td></tr>
2910 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
2911 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2912 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2913 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>2.4.11 and later</td></tr>
2914 </table><p>The documentation for this directive has
2915             not been translated yet. Please have a look at the English
2916             version.</p></div>
2917 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
2918 <div class="directive-section"><h2><a name="Mutex" id="Mutex">Mutex</a> <a name="mutex" id="mutex">Directiva</a></h2>
2919 <table class="directive">
2920 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Configures mutex mechanism and lock file directory for all
2921 or specified mutexes</td></tr>
2922 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>Mutex <var>mechanism</var> [default|<var>mutex-name</var>] ... [OmitPID]</code></td></tr>
2923 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>Mutex default</code></td></tr>
2924 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config</td></tr>
2925 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
2926 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
2927 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Available in Apache HTTP Server 2.3.4 and later</td></tr>
2928 </table>
2929     <p>The <code class="directive">Mutex</code> directive sets the mechanism,
2930     and optionally the lock file location, that httpd and modules use
2931     to serialize access to resources.  Specify <code>default</code> as
2932     the first argument to change the settings for all mutexes; specify
2933     a mutex name (see table below) as the first argument to override
2934     defaults only for that mutex.</p>
2935
2936     <p>The <code class="directive">Mutex</code> directive is typically used in
2937     the following exceptional situations:</p>
2938
2939     <ul>
2940         <li>change the mutex mechanism when the default mechanism selected
2941         by <a class="glossarylink" href="../glossary.html#apr" title="ver glosario">APR</a> has a functional or performance
2942         problem</li>
2943
2944         <li>change the directory used by file-based mutexes when the
2945         default directory does not support locking</li>
2946     </ul>
2947
2948     <div class="note"><h3>Supported modules</h3>
2949     <p>This directive only configures mutexes which have been registered
2950     with the core server using the <code>ap_mutex_register()</code> API.
2951     All modules bundled with httpd support the <code class="directive">Mutex</code>
2952     directive, but third-party modules may not.  Consult the documentation
2953     of the third-party module, which must indicate the mutex name(s) which
2954     can be configured if this directive is supported.</p>
2955     </div>
2956
2957     <p>The following mutex <em>mechanisms</em> are available:</p>
2958     <ul>
2959         <li><code>default | yes</code>
2960         <p>This selects the default locking implementation, as determined by
2961         <a class="glossarylink" href="../glossary.html#apr" title="ver glosario">APR</a>.  The default locking implementation can
2962         be displayed by running <code class="program"><a href="../programs/httpd.html">httpd</a></code> with the 
2963         <code>-V</code> option.</p></li>
2964
2965         <li><code>none | no</code>
2966         <p>This effectively disables the mutex, and is only allowed for a
2967         mutex if the module indicates that it is a valid choice.  Consult the
2968         module documentation for more information.</p></li>
2969
2970         <li><code>posixsem</code>
2971         <p>This is a mutex variant based on a Posix semaphore.</p>
2972
2973         <div class="warning"><h3>Warning</h3>
2974         <p>The semaphore ownership is not recovered if a thread in the process
2975         holding the mutex segfaults, resulting in a hang of the web server.</p>
2976         </div>
2977         </li>
2978
2979         <li><code>sysvsem</code>
2980         <p>This is a mutex variant based on a SystemV IPC semaphore.</p>
2981
2982         <div class="warning"><h3>Warning</h3>
2983         <p>It is possible to "leak" SysV semaphores if processes crash 
2984         before the semaphore is removed.</p>
2985         </div>
2986
2987         <div class="warning"><h3>Security</h3>
2988         <p>The semaphore API allows for a denial of service attack by any
2989         CGIs running under the same uid as the webserver (<em>i.e.</em>,
2990         all CGIs, unless you use something like <code class="program"><a href="../programs/suexec.html">suexec</a></code>
2991         or <code>cgiwrapper</code>).</p>
2992         </div>
2993         </li>
2994
2995         <li><code>sem</code>
2996         <p>This selects the "best" available semaphore implementation, choosing
2997         between Posix and SystemV IPC semaphores, in that order.</p></li>
2998
2999         <li><code>pthread</code>
3000         <p>This is a mutex variant based on cross-process Posix thread
3001         mutexes.</p>
3002
3003         <div class="warning"><h3>Warning</h3>
3004         <p>On most systems, if a child process terminates abnormally while
3005         holding a mutex that uses this implementation, the server will deadlock
3006         and stop responding to requests.  When this occurs, the server will
3007         require a manual restart to recover.</p>
3008         <p>Solaris is a notable exception as it provides a mechanism which
3009         usually allows the mutex to be recovered after a child process
3010         terminates abnormally while holding a mutex.</p>
3011         <p>If your system implements the
3012         <code>pthread_mutexattr_setrobust_np()</code> function, you may be able
3013         to use the <code>pthread</code> option safely.</p>
3014         </div>
3015         </li>
3016
3017         <li><code>fcntl:/path/to/mutex</code>
3018         <p>This is a mutex variant where a physical (lock-)file and the 
3019         <code>fcntl()</code> function are used as the mutex.</p>
3020
3021         <div class="warning"><h3>Warning</h3>
3022         <p>When multiple mutexes based on this mechanism are used within
3023         multi-threaded, multi-process environments, deadlock errors (EDEADLK)
3024         can be reported for valid mutex operations if <code>fcntl()</code>
3025         is not thread-aware, such as on Solaris.</p>
3026         </div>
3027         </li>
3028
3029         <li><code>flock:/path/to/mutex</code>
3030         <p>This is similar to the <code>fcntl:/path/to/mutex</code> method
3031         with the exception that the <code>flock()</code> function is used to
3032         provide file locking.</p></li>
3033
3034         <li><code>file:/path/to/mutex</code>
3035         <p>This selects the "best" available file locking implementation,
3036         choosing between <code>fcntl</code> and <code>flock</code>, in that
3037         order.</p></li>
3038     </ul>
3039
3040     <p>Most mechanisms are only available on selected platforms, where the 
3041     underlying platform and <a class="glossarylink" href="../glossary.html#apr" title="ver glosario">APR</a> support it.  Mechanisms
3042     which aren't available on all platforms are <em>posixsem</em>,
3043     <em>sysvsem</em>, <em>sem</em>, <em>pthread</em>, <em>fcntl</em>, 
3044     <em>flock</em>, and <em>file</em>.</p>
3045
3046     <p>With the file-based mechanisms <em>fcntl</em> and <em>flock</em>,
3047     the path, if provided, is a directory where the lock file will be created.
3048     The default directory is httpd's run-time file directory relative to
3049     <code class="directive"><a href="#serverroot">ServerRoot</a></code>.  Always use a local disk
3050     filesystem for <code>/path/to/mutex</code> and never a directory residing
3051     on a NFS- or AFS-filesystem.  The basename of the file will be the mutex
3052     type, an optional instance string provided by the module, and unless the
3053     <code>OmitPID</code> keyword is specified, the process id of the httpd 
3054     parent process will be appended to to make the file name unique, avoiding
3055     conflicts when multiple httpd instances share a lock file directory.  For
3056     example, if the mutex name is <code>mpm-accept</code> and the lock file
3057     directory is <code>/var/httpd/locks</code>, the lock file name for the
3058     httpd instance with parent process id 12345 would be 
3059     <code>/var/httpd/locks/mpm-accept.12345</code>.</p>
3060
3061     <div class="warning"><h3>Security</h3>
3062     <p>It is best to <em>avoid</em> putting mutex files in a world-writable
3063     directory such as <code>/var/tmp</code> because someone could create
3064     a denial of service attack and prevent the server from starting by
3065     creating a lockfile with the same name as the one the server will try
3066     to create.</p>
3067     </div>
3068
3069     <p>The following table documents the names of mutexes used by httpd
3070     and bundled modules.</p>
3071
3072     <table class="bordered"><tr class="header">
3073             <th>Mutex name</th>
3074             <th>Module(s)</th>
3075             <th>Protected resource</th>
3076         </tr>
3077 <tr>
3078             <td><code>mpm-accept</code></td>
3079             <td><code class="module"><a href="../mod/prefork.html">prefork</a></code> and <code class="module"><a href="../mod/worker.html">worker</a></code> MPMs</td>
3080             <td>incoming connections, to avoid the thundering herd problem;
3081             for more information, refer to the
3082             <a href="../misc/perf-tuning.html">performance tuning</a>
3083             documentation</td>
3084         </tr>
3085 <tr class="odd">
3086             <td><code>authdigest-client</code></td>
3087             <td><code class="module"><a href="../mod/mod_auth_digest.html">mod_auth_digest</a></code></td>
3088             <td>client list in shared memory</td>
3089         </tr>
3090 <tr>
3091             <td><code>authdigest-opaque</code></td>
3092             <td><code class="module"><a href="../mod/mod_auth_digest.html">mod_auth_digest</a></code></td>
3093             <td>counter in shared memory</td>
3094         </tr>
3095 <tr class="odd">
3096             <td><code>ldap-cache</code></td>
3097             <td><code class="module"><a href="../mod/mod_ldap.html">mod_ldap</a></code></td>
3098             <td>LDAP result cache</td>
3099         </tr>
3100 <tr>
3101             <td><code>rewrite-map</code></td>
3102             <td><code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code></td>
3103             <td>communication with external mapping programs, to avoid
3104             intermixed I/O from multiple requests</td>
3105         </tr>
3106 <tr class="odd">
3107             <td><code>ssl-cache</code></td>
3108             <td><code class="module"><a href="../mod/mod_ssl.html">mod_ssl</a></code></td>
3109             <td>SSL session cache</td>
3110         </tr>
3111 <tr>
3112             <td><code>ssl-stapling</code></td>
3113             <td><code class="module"><a href="../mod/mod_ssl.html">mod_ssl</a></code></td>
3114             <td>OCSP stapling response cache</td>
3115         </tr>
3116 <tr class="odd">
3117             <td><code>watchdog-callback</code></td>
3118             <td><code class="module"><a href="../mod/mod_watchdog.html">mod_watchdog</a></code></td>
3119             <td>callback function of a particular client module</td>
3120         </tr>
3121 </table>
3122
3123     <p>The <code>OmitPID</code> keyword suppresses the addition of the httpd
3124     parent process id from the lock file name.</p>
3125
3126     <p>In the following example, the mutex mechanism for the MPM accept
3127     mutex will be changed from the compiled-in default to <code>fcntl</code>,
3128     with the associated lock file created in directory
3129     <code>/var/httpd/locks</code>.  The mutex mechanism for all other mutexes
3130     will be changed from the compiled-in default to <code>sysvsem</code>.</p>
3131
3132     <div class="example"><p><code>
3133     Mutex default sysvsem<br />
3134     Mutex mpm-accept fcntl:/var/httpd/locks
3135     </code></p></div>
3136
3137 </div>
3138 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3139 <div class="directive-section"><h2><a name="NameVirtualHost" id="NameVirtualHost">NameVirtualHost</a> <a name="namevirtualhost" id="namevirtualhost">Directiva</a></h2>
3140 <table class="directive">
3141 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Designates an IP address for name-virtual
3142 hosting</td></tr>
3143 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>NameVirtualHost <var>addr</var>[:<var>port</var>]</code></td></tr>
3144 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config</td></tr>
3145 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3146 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3147 </table>
3148
3149 <p>A single <code class="directive">NameVirtualHost</code> directive 
3150 identifies a set of identical virtual hosts on which the server will  
3151 further select from on the basis of the <em>hostname</em> 
3152 requested by the client.  The <code class="directive">NameVirtualHost</code>
3153 directive is a required directive if you want to configure 
3154 <a href="../vhosts/">name-based virtual hosts</a>.</p>
3155
3156 <p>This directive, and the corresponding <code class="directive">VirtualHost</code>,
3157 <em>must</em> be qualified with a port number if the server supports both HTTP 
3158 and HTTPS connections.</p>
3159
3160 <p>Although <var>addr</var> can be a hostname, it is recommended
3161 that you always use an IP address or a wildcard.  A wildcard
3162 NameVirtualHost matches only virtualhosts that also have a literal wildcard
3163 as their argument.</p>
3164
3165 <p>In cases where a firewall or other proxy receives the requests and 
3166 forwards them on a different IP address to the server, you must specify the
3167 IP address of the physical interface on the machine which will be
3168 servicing the requests. </p>
3169
3170 <p> In the example below, requests received on interface 192.0.2.1 and port 80 
3171 will only select among the first two virtual hosts. Requests received on
3172 port 80 on any other interface will only select among the third and fourth
3173 virtual hosts. In the common case where the interface isn't important 
3174 to the mapping, only the "*:80" NameVirtualHost and VirtualHost directives 
3175 are necessary.</p>
3176
3177    <div class="example"><p><code>
3178       NameVirtualHost 192.0.2.1:80<br />
3179       NameVirtualHost *:80<br /><br />
3180
3181       &lt;VirtualHost 192.0.2.1:80&gt;<br />
3182       &nbsp; ServerName namebased-a.example.com<br />
3183       &lt;/VirtualHost&gt;<br />
3184       <br />
3185       &lt;VirtualHost 192.0.2.1:80&gt;<br />
3186       &nbsp; Servername namebased-b.example.com<br />
3187       &lt;/VirtualHost&gt;<br />
3188       <br />
3189       &lt;VirtualHost *:80&gt;<br />
3190       &nbsp; ServerName namebased-c.example.com <br />
3191       &lt;/VirtualHost&gt;<br />
3192       <br />
3193       &lt;VirtualHost *:80&gt;<br />
3194       &nbsp; ServerName namebased-d.example.com <br />
3195       &lt;/VirtualHost&gt;<br />
3196       <br />
3197
3198     </code></p></div>
3199
3200     <p>If no matching virtual host is found, then the first listed
3201     virtual host that matches the IP address and port will be used.</p>
3202
3203
3204     <p>IPv6 addresses must be enclosed in square brackets, as shown
3205     in the following example:</p>
3206
3207     <div class="example"><p><code>
3208       NameVirtualHost [2001:db8::a00:20ff:fea7:ccea]:8080
3209     </code></p></div>
3210
3211     <div class="note"><h3>Argument to <code class="directive">&lt;VirtualHost&gt;</code>
3212       directive</h3>
3213       <p>Note that the argument to the <code class="directive">&lt;VirtualHost&gt;</code> directive must
3214       exactly match the argument to the <code class="directive">NameVirtualHost</code> directive.</p>
3215
3216       <div class="example"><p><code>
3217         NameVirtualHost 192.0.2.2:80<br />
3218         &lt;VirtualHost 192.0.2.2:80&gt;<br />
3219         # ...<br />
3220         &lt;/VirtualHost&gt;<br />
3221       </code></p></div>
3222     </div>
3223
3224 <h3>Consulte también</h3>
3225 <ul>
3226 <li><a href="../vhosts/">Virtual Hosts
3227 documentation</a></li>
3228 </ul>
3229 </div>
3230 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3231 <div class="directive-section"><h2><a name="Options" id="Options">Options</a> <a name="options" id="options">Directiva</a></h2>
3232 <table class="directive">
3233 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Configures what features are available in a particular
3234 directory</td></tr>
3235 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>Options
3236     [+|-]<var>option</var> [[+|-]<var>option</var>] ...</code></td></tr>
3237 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>Options All</code></td></tr>
3238 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
3239 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>Options</td></tr>
3240 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3241 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3242 </table>
3243     <p>The <code class="directive">Options</code> directive controls which
3244     server features are available in a particular directory.</p>
3245
3246     <p><var>option</var> can be set to <code>None</code>, in which
3247     case none of the extra features are enabled, or one or more of
3248     the following:</p>
3249
3250     <dl>
3251       <dt><code>All</code></dt>
3252
3253       <dd>All options except for <code>MultiViews</code>. This is the default
3254       setting.</dd>
3255
3256       <dt><code>ExecCGI</code></dt>
3257
3258       <dd>
3259       Execution of CGI scripts using <code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code>
3260       is permitted.</dd>
3261
3262       <dt><code>FollowSymLinks</code></dt>
3263
3264       <dd>
3265
3266       The server will follow symbolic links in this directory.
3267       <div class="note">
3268       <p>Even though the server follows the symlink it does <em>not</em>
3269       change the pathname used to match against <code class="directive"><a href="#directory">&lt;Directory&gt;</a></code> sections.</p>
3270       <p>Note also, that this option <strong>gets ignored</strong> if set
3271       inside a <code class="directive"><a href="#location">&lt;Location&gt;</a></code>
3272       section.</p>
3273       <p>Omitting this option should not be considered a security restriction,
3274       since symlink testing is subject to race conditions that make it
3275       circumventable.</p>
3276       </div></dd>
3277
3278       <dt><code>Includes</code></dt>
3279
3280       <dd>
3281       Server-side includes provided by <code class="module"><a href="../mod/mod_include.html">mod_include</a></code>
3282       are permitted.</dd>
3283
3284       <dt><code>IncludesNOEXEC</code></dt>
3285
3286       <dd>
3287
3288       Server-side includes are permitted, but the <code>#exec
3289       cmd</code> and <code>#exec cgi</code> are disabled. It is still
3290       possible to <code>#include virtual</code> CGI scripts from
3291       <code class="directive"><a href="../mod/mod_alias.html#scriptalias">ScriptAlias</a></code>ed
3292       directories.</dd>
3293
3294       <dt><code>Indexes</code></dt>
3295
3296       <dd>
3297       If a URL which maps to a directory is requested, and there
3298       is no <code class="directive"><a href="../mod/mod_dir.html#directoryindex">DirectoryIndex</a></code>
3299       (<em>e.g.</em>, <code>index.html</code>) in that directory, then
3300       <code class="module"><a href="../mod/mod_autoindex.html">mod_autoindex</a></code> will return a formatted listing
3301       of the directory.</dd>
3302
3303       <dt><code>MultiViews</code></dt>
3304
3305       <dd>
3306       <a href="../content-negotiation.html">Content negotiated</a>
3307       "MultiViews" are allowed using
3308       <code class="module"><a href="../mod/mod_negotiation.html">mod_negotiation</a></code>.
3309       <div class="note"><h3>Note</h3> <p>This option gets ignored if set
3310       anywhere other than <code class="directive"><a href="#directory">&lt;Directory&gt;</a></code>, as <code class="module"><a href="../mod/mod_negotiation.html">mod_negotiation</a></code>
3311       needs real resources to compare against and evaluate from.</p></div>
3312       </dd>
3313
3314       <dt><code>SymLinksIfOwnerMatch</code></dt>
3315
3316       <dd>The server will only follow symbolic links for which the
3317       target file or directory is owned by the same user id as the
3318       link.
3319
3320       <div class="note"><h3>Note</h3> <p>This option gets ignored if
3321       set inside a <code class="directive"><a href="#location">&lt;Location&gt;</a></code> section.</p>
3322       <p>This option should not be considered a security restriction,
3323       since symlink testing is subject to race conditions that make it
3324       circumventable.</p></div>
3325       </dd>
3326     </dl>
3327
3328     <p>Normally, if multiple <code class="directive">Options</code> could
3329     apply to a directory, then the most specific one is used and
3330     others are ignored; the options are not merged. (See <a href="../sections.html#mergin">how sections are merged</a>.)
3331     However if <em>all</em> the options on the
3332     <code class="directive">Options</code> directive are preceded by a
3333     <code>+</code> or <code>-</code> symbol, the options are
3334     merged. Any options preceded by a <code>+</code> are added to the
3335     options currently in force, and any options preceded by a
3336     <code>-</code> are removed from the options currently in
3337     force. </p>
3338
3339     <div class="warning"><h3>Warning</h3>
3340     <p>Mixing <code class="directive">Options</code> with a <code>+</code> or
3341     <code>-</code> with those without is not valid syntax, and is likely
3342     to cause unexpected results.</p>
3343     </div>
3344
3345     <p>For example, without any <code>+</code> and <code>-</code> symbols:</p>
3346
3347     <div class="example"><p><code>
3348       &lt;Directory /web/docs&gt;<br />
3349       <span class="indent">
3350         Options Indexes FollowSymLinks<br />
3351       </span>
3352       &lt;/Directory&gt;<br />
3353       <br />
3354       &lt;Directory /web/docs/spec&gt;<br />
3355       <span class="indent">
3356         Options Includes<br />
3357       </span>
3358       &lt;/Directory&gt;
3359     </code></p></div>
3360
3361     <p>then only <code>Includes</code> will be set for the
3362     <code>/web/docs/spec</code> directory. However if the second
3363     <code class="directive">Options</code> directive uses the <code>+</code> and
3364     <code>-</code> symbols:</p>
3365
3366     <div class="example"><p><code>
3367       &lt;Directory /web/docs&gt;<br />
3368       <span class="indent">
3369         Options Indexes FollowSymLinks<br />
3370       </span>
3371       &lt;/Directory&gt;<br />
3372       <br />
3373       &lt;Directory /web/docs/spec&gt;<br />
3374       <span class="indent">
3375         Options +Includes -Indexes<br />
3376       </span>
3377       &lt;/Directory&gt;
3378     </code></p></div>
3379
3380     <p>then the options <code>FollowSymLinks</code> and
3381     <code>Includes</code> are set for the <code>/web/docs/spec</code>
3382     directory.</p>
3383
3384     <div class="note"><h3>Note</h3>
3385       <p>Using <code>-IncludesNOEXEC</code> or
3386       <code>-Includes</code> disables server-side includes completely
3387       regardless of the previous setting.</p>
3388     </div>
3389
3390     <p>The default in the absence of any other settings is
3391     <code>All</code>.</p>
3392
3393 </div>
3394 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3395 <div class="directive-section"><h2><a name="Protocol" id="Protocol">Protocol</a> <a name="protocol" id="protocol">Directiva</a></h2>
3396 <table class="directive">
3397 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Protocol for a listening socket</td></tr>
3398 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>Protocol <var>protocol</var></code></td></tr>
3399 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
3400 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3401 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3402 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Available in Apache 2.1.5 and later.
3403 On Windows from Apache 2.3.3 and later.</td></tr>
3404 </table>
3405     <p>This directive specifies the protocol used for a specific listening socket.
3406        The protocol is used to determine which module should handle a request, and
3407        to apply protocol specific optimizations with the <code class="directive">AcceptFilter</code>
3408        directive.</p>
3409
3410     <p>You only need to set the protocol if you are running on non-standard ports, otherwise <code>http</code> is assumed for port 80 and <code>https</code> for port 443.</p>
3411
3412     <p>For example, if you are running <code>https</code> on a non-standard port, specify the protocol explicitly:</p>
3413
3414     <div class="example"><p><code>
3415       Protocol https
3416     </code></p></div>
3417
3418     <p>You can also specify the protocol using the <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code> directive.</p>
3419
3420 <h3>Consulte también</h3>
3421 <ul>
3422 <li><code class="directive">AcceptFilter</code></li>
3423 <li><code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code></li>
3424 </ul>
3425 </div>
3426 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3427 <div class="directive-section"><h2><a name="Protocols" id="Protocols">Protocols</a> <a name="protocols" id="protocols">Directiva</a></h2>
3428 <table class="directive">
3429 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Protocols available for a server/virtual host</td></tr>
3430 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>Protocols <var>protocol</var> ...</code></td></tr>
3431 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>Protocols http/1.1</code></td></tr>
3432 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
3433 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3434 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3435 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Only available from Apache 2.4.17 and later.</td></tr>
3436 </table><p>The documentation for this directive has
3437             not been translated yet. Please have a look at the English
3438             version.</p><h3>Consulte también</h3>
3439 <ul>
3440 <li><code class="directive"><a href="#protocolshonororder">ProtocolsHonorOrder</a></code></li>
3441 </ul>
3442 </div>
3443 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3444 <div class="directive-section"><h2><a name="ProtocolsHonorOrder" id="ProtocolsHonorOrder">ProtocolsHonorOrder</a> <a name="protocolshonororder" id="protocolshonororder">Directiva</a></h2>
3445 <table class="directive">
3446 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Determines if order of Protocols determines precedence during negotiation</td></tr>
3447 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>ProtocolsHonorOrder On|Off</code></td></tr>
3448 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>ProtocolsHonorOrder On</code></td></tr>
3449 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
3450 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3451 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3452 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Only available from Apache 2.4.17 and later.</td></tr>
3453 </table><p>The documentation for this directive has
3454             not been translated yet. Please have a look at the English
3455             version.</p><h3>Consulte también</h3>
3456 <ul>
3457 <li><code class="directive"><a href="#protocols">Protocols</a></code></li>
3458 </ul>
3459 </div>
3460 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3461 <div class="directive-section"><h2><a name="QualifyRedirectURL" id="QualifyRedirectURL">QualifyRedirectURL</a> <a name="qualifyredirecturl" id="qualifyredirecturl">Directiva</a></h2>
3462 <table class="directive">
3463 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Controls whether the REDIRECT_URL environment variable is 
3464              fully qualified</td></tr>
3465 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>QualifyRedirectURL ON|OFF</code></td></tr>
3466 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>QualifyRedirectURL OFF</code></td></tr>
3467 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory</td></tr>
3468 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>FileInfo</td></tr>
3469 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3470 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3471 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Directive supported in 2.4.18 and later. 2.4.17 acted
3472 as if 'QualifyRedirectURL ON' was configured.</td></tr>
3473 </table><p>The documentation for this directive has
3474             not been translated yet. Please have a look at the English
3475             version.</p></div>
3476 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3477 <div class="directive-section"><h2><a name="RegisterHttpMethod" id="RegisterHttpMethod">RegisterHttpMethod</a> <a name="registerhttpmethod" id="registerhttpmethod">Directiva</a></h2>
3478 <table class="directive">
3479 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Register non-standard HTTP methods</td></tr>
3480 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>RegisterHttpMethod <var>method</var> [<var>method</var> [...]]</code></td></tr>
3481 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config</td></tr>
3482 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3483 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3484 </table><p>The documentation for this directive has
3485             not been translated yet. Please have a look at the English
3486             version.</p></div>
3487 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3488 <div class="directive-section"><h2><a name="RLimitCPU" id="RLimitCPU">RLimitCPU</a> <a name="rlimitcpu" id="rlimitcpu">Directiva</a></h2>
3489 <table class="directive">
3490 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Limits the CPU consumption of processes launched
3491 by Apache httpd children</td></tr>
3492 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>RLimitCPU <var>seconds</var>|max [<var>seconds</var>|max]</code></td></tr>
3493 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>Unset; uses operating system defaults</code></td></tr>
3494 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
3495 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>All</td></tr>
3496 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3497 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3498 </table>
3499     <p>Takes 1 or 2 parameters. The first parameter sets the soft
3500     resource limit for all processes and the second parameter sets
3501     the maximum resource limit. Either parameter can be a number,
3502     or <code>max</code> to indicate to the server that the limit should
3503     be set to the maximum allowed by the operating system
3504     configuration. Raising the maximum resource limit requires that
3505     the server is running as <code>root</code>, or in the initial startup
3506     phase.</p>
3507
3508     <p>This applies to processes forked off from Apache httpd children
3509     servicing requests, not the Apache httpd children themselves. This
3510     includes CGI scripts and SSI exec commands, but not any
3511     processes forked off from the Apache httpd parent such as piped
3512     logs.</p>
3513
3514     <p>CPU resource limits are expressed in seconds per
3515     process.</p>
3516
3517 <h3>Consulte también</h3>
3518 <ul>
3519 <li><code class="directive"><a href="#rlimitmem">RLimitMEM</a></code></li>
3520 <li><code class="directive"><a href="#rlimitnproc">RLimitNPROC</a></code></li>
3521 </ul>
3522 </div>
3523 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3524 <div class="directive-section"><h2><a name="RLimitMEM" id="RLimitMEM">RLimitMEM</a> <a name="rlimitmem" id="rlimitmem">Directiva</a></h2>
3525 <table class="directive">
3526 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Limits the memory consumption of processes launched
3527 by Apache httpd children</td></tr>
3528 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>RLimitMEM <var>bytes</var>|max [<var>bytes</var>|max]</code></td></tr>
3529 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>Unset; uses operating system defaults</code></td></tr>
3530 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
3531 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>All</td></tr>
3532 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3533 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3534 </table>
3535     <p>Takes 1 or 2 parameters. The first parameter sets the soft
3536     resource limit for all processes and the second parameter sets
3537     the maximum resource limit. Either parameter can be a number,
3538     or <code>max</code> to indicate to the server that the limit should
3539     be set to the maximum allowed by the operating system
3540     configuration. Raising the maximum resource limit requires that
3541     the server is running as <code>root</code>, or in the initial startup
3542     phase.</p>
3543
3544     <p>This applies to processes forked off from Apache httpd children
3545     servicing requests, not the Apache httpd children themselves. This
3546     includes CGI scripts and SSI exec commands, but not any
3547     processes forked off from the Apache httpd parent such as piped
3548     logs.</p>
3549
3550     <p>Memory resource limits are expressed in bytes per
3551     process.</p>
3552
3553 <h3>Consulte también</h3>
3554 <ul>
3555 <li><code class="directive"><a href="#rlimitcpu">RLimitCPU</a></code></li>
3556 <li><code class="directive"><a href="#rlimitnproc">RLimitNPROC</a></code></li>
3557 </ul>
3558 </div>
3559 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3560 <div class="directive-section"><h2><a name="RLimitNPROC" id="RLimitNPROC">RLimitNPROC</a> <a name="rlimitnproc" id="rlimitnproc">Directiva</a></h2>
3561 <table class="directive">
3562 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Limits the number of processes that can be launched by
3563 processes launched by Apache httpd children</td></tr>
3564 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>RLimitNPROC <var>number</var>|max [<var>number</var>|max]</code></td></tr>
3565 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>Unset; uses operating system defaults</code></td></tr>
3566 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
3567 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>All</td></tr>
3568 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3569 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3570 </table>
3571     <p>Takes 1 or 2 parameters. The first parameter sets the soft
3572     resource limit for all processes and the second parameter sets
3573     the maximum resource limit. Either parameter can be a number,
3574     or <code>max</code> to indicate to the server that the limit
3575     should be set to the maximum allowed by the operating system
3576     configuration. Raising the maximum resource limit requires that
3577     the server is running as <code>root</code>, or in the initial startup
3578     phase.</p>
3579
3580     <p>This applies to processes forked off from Apache httpd children
3581     servicing requests, not the Apache httpd children themselves. This
3582     includes CGI scripts and SSI exec commands, but not any
3583     processes forked off from the Apache httpd parent such as piped
3584     logs.</p>
3585
3586     <p>Process limits control the number of processes per user.</p>
3587
3588     <div class="note"><h3>Note</h3>
3589       <p>If CGI processes are <strong>not</strong> running
3590       under user ids other than the web server user id, this directive
3591       will limit the number of processes that the server itself can
3592       create. Evidence of this situation will be indicated by
3593       <strong><code>cannot fork</code></strong> messages in the
3594       <code>error_log</code>.</p>
3595     </div>
3596
3597 <h3>Consulte también</h3>
3598 <ul>
3599 <li><code class="directive"><a href="#rlimitmem">RLimitMEM</a></code></li>
3600 <li><code class="directive"><a href="#rlimitcpu">RLimitCPU</a></code></li>
3601 </ul>
3602 </div>
3603 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3604 <div class="directive-section"><h2><a name="ScriptInterpreterSource" id="ScriptInterpreterSource">ScriptInterpreterSource</a> <a name="scriptinterpretersource" id="scriptinterpretersource">Directiva</a></h2>
3605 <table class="directive">
3606 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Technique for locating the interpreter for CGI
3607 scripts</td></tr>
3608 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>ScriptInterpreterSource Registry|Registry-Strict|Script</code></td></tr>
3609 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>ScriptInterpreterSource Script</code></td></tr>
3610 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
3611 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>FileInfo</td></tr>
3612 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3613 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3614 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Win32 only;
3615 option <code>Registry-Strict</code> is available in Apache HTTP Server 2.0 and
3616 later</td></tr>
3617 </table>
3618     <p>This directive is used to control how Apache httpd finds the
3619     interpreter used to run CGI scripts. The default setting is
3620     <code>Script</code>. This causes Apache httpd to use the interpreter pointed to
3621     by the shebang line (first line, starting with <code>#!</code>) in the
3622     script. On Win32 systems this line usually looks like:</p>
3623
3624     <div class="example"><p><code>
3625       #!C:/Perl/bin/perl.exe
3626     </code></p></div>
3627
3628     <p>or, if <code>perl</code> is in the <code>PATH</code>, simply:</p>
3629
3630     <div class="example"><p><code>
3631       #!perl
3632     </code></p></div>
3633
3634     <p>Setting <code>ScriptInterpreterSource Registry</code> will
3635     cause the Windows Registry tree <code>HKEY_CLASSES_ROOT</code> to be
3636     searched using the script file extension (e.g., <code>.pl</code>) as a
3637     search key. The command defined by the registry subkey
3638     <code>Shell\ExecCGI\Command</code> or, if it does not exist, by the subkey
3639     <code>Shell\Open\Command</code> is used to open the script file. If the
3640     registry keys cannot be found, Apache httpd falls back to the behavior of the
3641     <code>Script</code> option.</p>
3642
3643     <div class="warning"><h3>Security</h3>
3644     <p>Be careful when using <code>ScriptInterpreterSource
3645     Registry</code> with <code class="directive"><a href="../mod/mod_alias.html#scriptalias">ScriptAlias</a></code>'ed directories, because
3646     Apache httpd will try to execute <strong>every</strong> file within this
3647     directory. The <code>Registry</code> setting may cause undesired
3648     program calls on files which are typically not executed. For
3649     example, the default open command on <code>.htm</code> files on
3650     most Windows systems will execute Microsoft Internet Explorer, so
3651     any HTTP request for an <code>.htm</code> file existing within the
3652     script directory would start the browser in the background on the
3653     server. This is a good way to crash your system within a minute or
3654     so.</p>
3655     </div>
3656
3657     <p>The option <code>Registry-Strict</code> which is new in Apache HTTP Server
3658     2.0 does the same thing as <code>Registry</code> but uses only the
3659     subkey <code>Shell\ExecCGI\Command</code>. The
3660     <code>ExecCGI</code> key is not a common one. It must be
3661     configured manually in the windows registry and hence prevents
3662     accidental program calls on your system.</p>
3663
3664 </div>
3665 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3666 <div class="directive-section"><h2><a name="SeeRequestTail" id="SeeRequestTail">SeeRequestTail</a> <a name="seerequesttail" id="seerequesttail">Directiva</a></h2>
3667 <table class="directive">
3668 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Determine if mod_status displays the first 63 characters
3669 of a request or the last 63, assuming the request itself is greater than
3670 63 chars.</td></tr>
3671 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>SeeRequestTail On|Off</code></td></tr>
3672 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>SeeRequestTail Off</code></td></tr>
3673 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config</td></tr>
3674 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3675 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3676 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Available in Apache httpd 2.2.7 and later.</td></tr>
3677 </table>
3678     <p>mod_status with <code>ExtendedStatus On</code>
3679     displays the actual request being handled. 
3680     For historical purposes, only 63 characters of the request
3681     are actually stored for display purposes. This directive
3682     controls whether the 1st 63 characters are stored (the previous
3683     behavior and the default) or if the last 63 characters are. This
3684     is only applicable, of course, if the length of the request is
3685     64 characters or greater.</p>
3686
3687     <p>If Apache httpd is handling <code>GET&nbsp;/disk1/storage/apache/htdocs/images/imagestore1/food/apples.jpg&nbsp;HTTP/1.1</code> mod_status displays as follows:
3688     </p>
3689
3690     <table class="bordered">
3691       <tr>
3692         <th>Off (default)</th>
3693         <td>GET&nbsp;/disk1/storage/apache/htdocs/images/imagestore1/food/apples</td>
3694       </tr>
3695       <tr>
3696         <th>On</th>
3697         <td>orage/apache/htdocs/images/imagestore1/food/apples.jpg&nbsp;HTTP/1.1</td>
3698       </tr>
3699     </table>
3700
3701
3702 </div>
3703 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3704 <div class="directive-section"><h2><a name="ServerAdmin" id="ServerAdmin">ServerAdmin</a> <a name="serveradmin" id="serveradmin">Directiva</a></h2>
3705 <table class="directive">
3706 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Email address that the server includes in error
3707 messages sent to the client</td></tr>
3708 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>ServerAdmin <var>email-address</var>|<var>URL</var></code></td></tr>
3709 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
3710 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3711 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3712 </table>
3713     <p>The <code class="directive">ServerAdmin</code> sets the contact address
3714     that the server includes in any error messages it returns to the
3715     client. If the <code>httpd</code> doesn't recognize the supplied argument
3716     as an URL, it
3717     assumes, that it's an <var>email-address</var> and prepends it with
3718     <code>mailto:</code> in hyperlink targets. However, it's recommended to
3719     actually use an email address, since there are a lot of CGI scripts that
3720     make that assumption. If you want to use an URL, it should point to another
3721     server under your control. Otherwise users may not be able to contact you in
3722     case of errors.</p>
3723
3724     <p>It may be worth setting up a dedicated address for this, e.g.</p>
3725
3726     <div class="example"><p><code>
3727       ServerAdmin www-admin@foo.example.com
3728     </code></p></div>
3729     <p>as users do not always mention that they are talking about the
3730     server!</p>
3731
3732 </div>
3733 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3734 <div class="directive-section"><h2><a name="ServerAlias" id="ServerAlias">ServerAlias</a> <a name="serveralias" id="serveralias">Directiva</a></h2>
3735 <table class="directive">
3736 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Alternate names for a host used when matching requests
3737 to name-virtual hosts</td></tr>
3738 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>ServerAlias <var>hostname</var> [<var>hostname</var>] ...</code></td></tr>
3739 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>virtual host</td></tr>
3740 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3741 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3742 </table>
3743     <p>The <code class="directive">ServerAlias</code> directive sets the
3744     alternate names for a host, for use with <a href="../vhosts/name-based.html">name-based virtual hosts</a>. The
3745     <code class="directive">ServerAlias</code> may include wildcards, if appropriate.</p>
3746
3747     <div class="example"><p><code>
3748       &lt;VirtualHost *:80&gt;<br />
3749       ServerName server.domain.com<br />
3750       ServerAlias server server2.domain.com server2<br />
3751       ServerAlias *.example.com<br />
3752       UseCanonicalName Off<br />
3753       # ...<br />
3754       &lt;/VirtualHost&gt;
3755     </code></p></div>
3756
3757 <h3>Consulte también</h3>
3758 <ul>
3759 <li><code class="directive"><a href="#usecanonicalname">UseCanonicalName</a></code></li>
3760 <li><a href="../vhosts/">Apache HTTP Server Virtual Host documentation</a></li>
3761 </ul>
3762 </div>
3763 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3764 <div class="directive-section"><h2><a name="ServerName" id="ServerName">ServerName</a> <a name="servername" id="servername">Directiva</a></h2>
3765 <table class="directive">
3766 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Hostname and port that the server uses to identify
3767 itself</td></tr>
3768 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>ServerName [<var>scheme</var>://]<var>fully-qualified-domain-name</var>[:<var>port</var>]</code></td></tr>
3769 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
3770 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3771 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3772 </table>
3773     <p>The <code class="directive">ServerName</code> directive sets the
3774     request scheme, hostname and
3775     port that the server uses to identify itself.  This is used when
3776     creating redirection URLs.</p>
3777
3778     <p>Additionally, <code class="directive">ServerName</code> is used (possibly
3779     in conjunction with <code class="directive">ServerAlias</code>) to uniquely
3780     identify a virtual host, when using <a href="../vhosts/name-based.html">name-based virtual hosts</a>.</p>
3781     
3782     <p>For example, if the name of the
3783     machine hosting the web server is <code>simple.example.com</code>,
3784     but the machine also has the DNS alias <code>www.example.com</code>
3785     and you wish the web server to be so identified, the following
3786     directive should be used:</p>
3787
3788     <div class="example"><p><code>
3789       ServerName www.example.com:80
3790     </code></p></div>
3791
3792     <p>The <code class="directive">ServerName</code> directive
3793     may appear anywhere within the definition of a server. However,
3794     each appearance overrides the previous appearance (within that
3795     server).</p>
3796
3797     <p>If no <code class="directive">ServerName</code> is specified, then the
3798     server attempts to deduce the hostname by performing a reverse
3799     lookup on the IP address. If no port is specified in the
3800     <code class="directive">ServerName</code>, then the server will use the
3801     port from the incoming request. For optimal reliability and
3802     predictability, you should specify an explicit hostname and port
3803     using the <code class="directive">ServerName</code> directive.</p>
3804
3805     <p>If you are using <a href="../vhosts/name-based.html">name-based virtual hosts</a>,
3806     the <code class="directive">ServerName</code> inside a
3807     <code class="directive"><a href="#virtualhost">&lt;VirtualHost&gt;</a></code>
3808     section specifies what hostname must appear in the request's
3809     <code>Host:</code> header to match this virtual host.</p>
3810
3811     <p>Sometimes, the server runs behind a device that processes SSL,
3812     such as a reverse proxy, load balancer or SSL offload
3813     appliance. When this is the case, specify the
3814     <code>https://</code> scheme and the port number to which the
3815     clients connect in the <code class="directive">ServerName</code> directive
3816     to make sure that the server generates the correct
3817     self-referential URLs. 
3818     </p>
3819
3820     <p>See the description of the
3821     <code class="directive"><a href="#usecanonicalname">UseCanonicalName</a></code> and
3822     <code class="directive"><a href="#usecanonicalphysicalport">UseCanonicalPhysicalPort</a></code> directives for
3823     settings which determine whether self-referential URLs (e.g., by the
3824     <code class="module"><a href="../mod/mod_dir.html">mod_dir</a></code> module) will refer to the
3825     specified port, or to the port number given in the client's request.
3826     </p>
3827
3828     <div class="warning">
3829     <p>Failure to set <code class="directive">ServerName</code> to a name that
3830     your server can resolve to an IP address will result in a startup
3831     warning. <code>httpd</code> will then use whatever hostname it can
3832     determine, using the system's <code>hostname</code> command. This
3833     will almost never be the hostname you actually want.</p>
3834     <div class="example"><p><code>
3835     httpd: Could not reliably determine the server's fully qualified domain name, using rocinante.local for ServerName
3836     </code></p></div>
3837     </div>
3838
3839
3840 <h3>Consulte también</h3>
3841 <ul>
3842 <li><a href="../dns-caveats.html">Issues Regarding DNS and
3843     Apache HTTP Server</a></li>
3844 <li><a href="../vhosts/">Apache HTTP Server virtual host
3845     documentation</a></li>
3846 <li><code class="directive"><a href="#usecanonicalname">UseCanonicalName</a></code></li>
3847 <li><code class="directive"><a href="#usecanonicalphysicalport">UseCanonicalPhysicalPort</a></code></li>
3848 <li><code class="directive"><a href="#namevirtualhost">NameVirtualHost</a></code></li>
3849 <li><code class="directive"><a href="#serveralias">ServerAlias</a></code></li>
3850 </ul>
3851 </div>
3852 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3853 <div class="directive-section"><h2><a name="ServerPath" id="ServerPath">ServerPath</a> <a name="serverpath" id="serverpath">Directiva</a></h2>
3854 <table class="directive">
3855 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Legacy URL pathname for a name-based virtual host that
3856 is accessed by an incompatible browser</td></tr>
3857 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>ServerPath <var>URL-path</var></code></td></tr>
3858 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>virtual host</td></tr>
3859 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3860 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3861 </table>
3862     <p>The <code class="directive">ServerPath</code> directive sets the legacy
3863     URL pathname for a host, for use with <a href="../vhosts/">name-based virtual hosts</a>.</p>
3864
3865 <h3>Consulte también</h3>
3866 <ul>
3867 <li><a href="../vhosts/">Apache HTTP Server Virtual Host documentation</a></li>
3868 </ul>
3869 </div>
3870 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3871 <div class="directive-section"><h2><a name="ServerRoot" id="ServerRoot">ServerRoot</a> <a name="serverroot" id="serverroot">Directiva</a></h2>
3872 <table class="directive">
3873 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Base directory for the server installation</td></tr>
3874 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>ServerRoot <var>directory-path</var></code></td></tr>
3875 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>ServerRoot /usr/local/apache</code></td></tr>
3876 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config</td></tr>
3877 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3878 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3879 </table>
3880     <p>The <code class="directive">ServerRoot</code> directive sets the
3881     directory in which the server lives. Typically it will contain the
3882     subdirectories <code>conf/</code> and <code>logs/</code>. Relative
3883     paths in other configuration directives (such as <code class="directive"><a href="#include">Include</a></code> or <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code>, for example) are taken as 
3884     relative to this directory.</p>
3885
3886     <div class="example"><h3>Example</h3><p><code>
3887       ServerRoot /home/httpd
3888     </code></p></div>
3889
3890
3891 <h3>Consulte también</h3>
3892 <ul>
3893 <li><a href="../invoking.html">the <code>-d</code>
3894     option to <code>httpd</code></a></li>
3895 <li><a href="../misc/security_tips.html#serverroot">the
3896     security tips</a> for information on how to properly set
3897     permissions on the <code class="directive">ServerRoot</code></li>
3898 </ul>
3899 </div>
3900 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3901 <div class="directive-section"><h2><a name="ServerSignature" id="ServerSignature">ServerSignature</a> <a name="serversignature" id="serversignature">Directiva</a></h2>
3902 <table class="directive">
3903 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Configures the footer on server-generated documents</td></tr>
3904 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>ServerSignature On|Off|EMail</code></td></tr>
3905 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>ServerSignature Off</code></td></tr>
3906 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
3907 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>All</td></tr>
3908 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3909 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3910 </table>
3911     <p>The <code class="directive">ServerSignature</code> directive allows the
3912     configuration of a trailing footer line under server-generated
3913     documents (error messages, <code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code> ftp directory
3914     listings, <code class="module"><a href="../mod/mod_info.html">mod_info</a></code> output, ...). The reason why you
3915     would want to enable such a footer line is that in a chain of proxies,
3916     the user often has no possibility to tell which of the chained servers
3917     actually produced a returned error message.</p>
3918
3919     <p>The <code>Off</code>
3920     setting, which is the default, suppresses the footer line (and is
3921     therefore compatible with the behavior of Apache-1.2 and
3922     below). The <code>On</code> setting simply adds a line with the
3923     server version number and <code class="directive"><a href="#servername">ServerName</a></code> of the serving virtual host,
3924     and the <code>EMail</code> setting additionally creates a
3925     "mailto:" reference to the <code class="directive"><a href="#serveradmin">ServerAdmin</a></code> of the referenced
3926     document.</p>
3927
3928     <p>After version 2.0.44, the details of the server version number
3929     presented are controlled by the <code class="directive"><a href="#servertokens">ServerTokens</a></code> directive.</p>
3930
3931 <h3>Consulte también</h3>
3932 <ul>
3933 <li><code class="directive"><a href="#servertokens">ServerTokens</a></code></li>
3934 </ul>
3935 </div>
3936 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
3937 <div class="directive-section"><h2><a name="ServerTokens" id="ServerTokens">ServerTokens</a> <a name="servertokens" id="servertokens">Directiva</a></h2>
3938 <table class="directive">
3939 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Configures the <code>Server</code> HTTP response
3940 header</td></tr>
3941 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>ServerTokens Major|Minor|Min[imal]|Prod[uctOnly]|OS|Full</code></td></tr>
3942 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>ServerTokens Full</code></td></tr>
3943 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config</td></tr>
3944 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
3945 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
3946 </table>
3947     <p>This directive controls whether <code>Server</code> response
3948     header field which is sent back to clients includes a
3949     description of the generic OS-type of the server as well as
3950     information about compiled-in modules.</p>
3951
3952     <dl>
3953       <dt><code>ServerTokens Full</code> (or not specified)</dt>
3954
3955       <dd>Server sends (<em>e.g.</em>): <code>Server: Apache/2.4.1
3956       (Unix) PHP/4.2.2 MyMod/1.2</code></dd>
3957
3958       <dt><code>ServerTokens Prod[uctOnly]</code></dt>
3959
3960       <dd>Server sends (<em>e.g.</em>): <code>Server:
3961       Apache</code></dd>
3962
3963       <dt><code>ServerTokens Major</code></dt>
3964
3965       <dd>Server sends (<em>e.g.</em>): <code>Server:
3966       Apache/2</code></dd>
3967
3968       <dt><code>ServerTokens Minor</code></dt>
3969
3970       <dd>Server sends (<em>e.g.</em>): <code>Server:
3971       Apache/2.4</code></dd>
3972
3973       <dt><code>ServerTokens Min[imal]</code></dt>
3974
3975       <dd>Server sends (<em>e.g.</em>): <code>Server:
3976       Apache/2.4.1</code></dd>
3977
3978       <dt><code>ServerTokens OS</code></dt>
3979
3980       <dd>Server sends (<em>e.g.</em>): <code>Server: Apache/2.4.1
3981       (Unix)</code></dd>
3982
3983     </dl>
3984
3985     <p>This setting applies to the entire server, and cannot be
3986     enabled or disabled on a virtualhost-by-virtualhost basis.</p>
3987
3988     <p>After version 2.0.44, this directive also controls the
3989     information presented by the <code class="directive"><a href="#serversignature">ServerSignature</a></code> directive.</p>
3990     
3991     <div class="note">Setting <code class="directive">ServerTokens</code> to less than
3992     <code>minimal</code> is not recommended because it makes it more
3993     difficult to debug interoperational problems. Also note that
3994     disabling the Server: header does nothing at all to make your
3995     server more secure; the idea of "security through obscurity"
3996     is a myth and leads to a false sense of safety.</div>
3997
3998
3999 <h3>Consulte también</h3>
4000 <ul>
4001 <li><code class="directive"><a href="#serversignature">ServerSignature</a></code></li>
4002 </ul>
4003 </div>
4004 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
4005 <div class="directive-section"><h2><a name="SetHandler" id="SetHandler">SetHandler</a> <a name="sethandler" id="sethandler">Directiva</a></h2>
4006 <table class="directive">
4007 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Forces all matching files to be processed by a
4008 handler</td></tr>
4009 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>SetHandler <var>handler-name</var>|None</code></td></tr>
4010 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
4011 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>FileInfo</td></tr>
4012 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
4013 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
4014 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Moved into the core in Apache httpd 2.0</td></tr>
4015 </table>
4016     <p>When placed into an <code>.htaccess</code> file or a
4017     <code class="directive"><a href="#directory">&lt;Directory&gt;</a></code> or
4018     <code class="directive"><a href="#location">&lt;Location&gt;</a></code>
4019     section, this directive forces all matching files to be parsed
4020     through the <a href="../handler.html">handler</a> given by
4021     <var>handler-name</var>. For example, if you had a directory you
4022     wanted to be parsed entirely as imagemap rule files, regardless
4023     of extension, you might put the following into an
4024     <code>.htaccess</code> file in that directory:</p>
4025
4026     <div class="example"><p><code>
4027       SetHandler imap-file
4028     </code></p></div>
4029
4030     <p>Another example: if you wanted to have the server display a
4031     status report whenever a URL of
4032     <code>http://servername/status</code> was called, you might put
4033     the following into <code>httpd.conf</code>:</p>
4034
4035     <div class="example"><p><code>
4036       &lt;Location /status&gt;<br />
4037       <span class="indent">
4038         SetHandler server-status<br />
4039       </span>
4040       &lt;/Location&gt;
4041     </code></p></div>
4042
4043     <p>You can override an earlier defined <code class="directive">SetHandler</code>
4044     directive by using the value <code>None</code>.</p>
4045     <p><strong>Note:</strong> because SetHandler overrides default handlers,
4046     normal behaviour such as handling of URLs ending in a slash (/) as
4047     directories or index files is suppressed.</p>
4048
4049 <h3>Consulte también</h3>
4050 <ul>
4051 <li><code class="directive"><a href="../mod/mod_mime.html#addhandler">AddHandler</a></code></li>
4052 </ul>
4053 </div>
4054 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
4055 <div class="directive-section"><h2><a name="SetInputFilter" id="SetInputFilter">SetInputFilter</a> <a name="setinputfilter" id="setinputfilter">Directiva</a></h2>
4056 <table class="directive">
4057 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Sets the filters that will process client requests and POST
4058 input</td></tr>
4059 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>SetInputFilter <var>filter</var>[;<var>filter</var>...]</code></td></tr>
4060 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
4061 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>FileInfo</td></tr>
4062 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
4063 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
4064 </table>
4065     <p>The <code class="directive">SetInputFilter</code> directive sets the
4066     filter or filters which will process client requests and POST
4067     input when they are received by the server. This is in addition to
4068     any filters defined elsewhere, including the
4069     <code class="directive"><a href="../mod/mod_mime.html#addinputfilter">AddInputFilter</a></code>
4070     directive.</p>
4071
4072     <p>If more than one filter is specified, they must be separated
4073     by semicolons in the order in which they should process the
4074     content.</p>
4075
4076 <h3>Consulte también</h3>
4077 <ul>
4078 <li><a href="../filter.html">Filters</a> documentation</li>
4079 </ul>
4080 </div>
4081 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
4082 <div class="directive-section"><h2><a name="SetOutputFilter" id="SetOutputFilter">SetOutputFilter</a> <a name="setoutputfilter" id="setoutputfilter">Directiva</a></h2>
4083 <table class="directive">
4084 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Sets the filters that will process responses from the
4085 server</td></tr>
4086 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>SetOutputFilter <var>filter</var>[;<var>filter</var>...]</code></td></tr>
4087 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
4088 <tr><th><a href="directive-dict.html#Override">Anula:</a></th><td>FileInfo</td></tr>
4089 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
4090 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
4091 </table>
4092     <p>The <code class="directive">SetOutputFilter</code> directive sets the filters
4093     which will process responses from the server before they are
4094     sent to the client. This is in addition to any filters defined
4095     elsewhere, including the
4096     <code class="directive"><a href="../mod/mod_mime.html#addoutputfilter">AddOutputFilter</a></code>
4097     directive.</p>
4098
4099     <p>For example, the following configuration will process all files
4100     in the <code>/www/data/</code> directory for server-side
4101     includes.</p>
4102
4103     <div class="example"><p><code>
4104       &lt;Directory /www/data/&gt;<br />
4105       <span class="indent">
4106         SetOutputFilter INCLUDES<br />
4107       </span>
4108       &lt;/Directory&gt;
4109     </code></p></div>
4110
4111     <p>If more than one filter is specified, they must be separated
4112     by semicolons in the order in which they should process the
4113     content.</p>
4114
4115 <h3>Consulte también</h3>
4116 <ul>
4117 <li><a href="../filter.html">Filters</a> documentation</li>
4118 </ul>
4119 </div>
4120 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
4121 <div class="directive-section"><h2><a name="TimeOut" id="TimeOut">TimeOut</a> <a name="timeout" id="timeout">Directiva</a></h2>
4122 <table class="directive">
4123 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Amount of time the server will wait for
4124 certain events before failing a request</td></tr>
4125 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>TimeOut <var>seconds</var></code></td></tr>
4126 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>TimeOut 60</code></td></tr>
4127 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host</td></tr>
4128 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
4129 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
4130 </table>
4131     <p>The <code class="directive">TimeOut</code> directive defines the length
4132     of time Apache httpd will wait for I/O in various circumstances:</p>
4133
4134     <ol>
4135       <li>When reading data from the client, the length of time to
4136       wait for a TCP packet to arrive if the read buffer is
4137       empty.</li>
4138
4139       <li>When writing data to the client, the length of time to wait
4140       for an acknowledgement of a packet if the send buffer is
4141       full.</li>
4142
4143       <li>In <code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code>, the length of time to wait for
4144       output from a CGI script.</li>
4145
4146       <li>In <code class="module"><a href="../mod/mod_ext_filter.html">mod_ext_filter</a></code>, the length of time to
4147       wait for output from a filtering process.</li>
4148
4149       <li>In <code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code>, the default timeout value if
4150       <code class="directive"><a href="../mod/mod_proxy.html#proxytimeout">ProxyTimeout</a></code> is not
4151       configured.</li>
4152     </ol>
4153
4154
4155 </div>
4156 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
4157 <div class="directive-section"><h2><a name="TraceEnable" id="TraceEnable">TraceEnable</a> <a name="traceenable" id="traceenable">Directiva</a></h2>
4158 <table class="directive">
4159 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Determines the behaviour on <code>TRACE</code> requests</td></tr>
4160 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>TraceEnable <var>[on|off|extended]</var></code></td></tr>
4161 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>TraceEnable on</code></td></tr>
4162 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config</td></tr>
4163 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
4164 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
4165 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>Available in Apache HTTP Server 1.3.34, 2.0.55 and later</td></tr>
4166 </table>
4167     <p>This directive overrides the behavior of <code>TRACE</code> for both
4168     the core server and <code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code>.  The default
4169     <code>TraceEnable on</code> permits <code>TRACE</code> requests per
4170     RFC 2616, which disallows any request body to accompany the request.
4171     <code>TraceEnable off</code> causes the core server and
4172     <code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code> to return a <code>405</code> (Method not
4173     allowed) error to the client.</p>
4174
4175     <p>Finally, for testing and diagnostic purposes only, request
4176     bodies may be allowed using the non-compliant <code>TraceEnable 
4177     extended</code> directive.  The core (as an origin server) will
4178     restrict the request body to 64k (plus 8k for chunk headers if
4179     <code>Transfer-Encoding: chunked</code> is used).  The core will
4180     reflect the full headers and all chunk headers with the response
4181     body.  As a proxy server, the request body is not restricted to 64k.</p>
4182
4183 </div>
4184 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
4185 <div class="directive-section"><h2><a name="UnDefine" id="UnDefine">UnDefine</a> <a name="undefine" id="undefine">Directiva</a></h2>
4186 <table class="directive">
4187 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Undefine the existence of a variable</td></tr>
4188 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>UnDefine <var>parameter-name</var></code></td></tr>
4189 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config</td></tr>
4190 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
4191 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
4192 </table>
4193     <p>Undoes the effect of a <code class="directive"><a href="#define">Define</a></code> or
4194     of passing a <code>-D</code> argument to <code class="program"><a href="../programs/httpd.html">httpd</a></code>.</p>
4195     <p>This directive can be used to toggle the use of <code class="directive"><a href="#ifdefine">&lt;IfDefine&gt;</a></code> sections without needing to alter
4196     <code>-D</code> arguments in any startup scripts.</p>
4197
4198 </div>
4199 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
4200 <div class="directive-section"><h2><a name="UseCanonicalName" id="UseCanonicalName">UseCanonicalName</a> <a name="usecanonicalname" id="usecanonicalname">Directiva</a></h2>
4201 <table class="directive">
4202 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Configures how the server determines its own name and
4203 port</td></tr>
4204 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>UseCanonicalName On|Off|DNS</code></td></tr>
4205 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>UseCanonicalName Off</code></td></tr>
4206 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory</td></tr>
4207 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
4208 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
4209 </table>
4210     <p>In many situations Apache httpd must construct a <em>self-referential</em>
4211     URL -- that is, a URL that refers back to the same server. With
4212     <code>UseCanonicalName On</code> Apache httpd will use the hostname and port
4213     specified in the <code class="directive"><a href="#servername">ServerName</a></code>
4214     directive to construct the canonical name for the server. This name
4215     is used in all self-referential URLs, and for the values of
4216     <code>SERVER_NAME</code> and <code>SERVER_PORT</code> in CGIs.</p>
4217
4218     <p>With <code>UseCanonicalName Off</code> Apache httpd will form
4219     self-referential URLs using the hostname and port supplied by
4220     the client if any are supplied (otherwise it will use the
4221     canonical name, as defined above). These values are the same
4222     that are used to implement <a href="../vhosts/name-based.html">name-based virtual hosts</a>,
4223     and are available with the same clients. The CGI variables
4224     <code>SERVER_NAME</code> and <code>SERVER_PORT</code> will be
4225     constructed from the client supplied values as well.</p>
4226
4227     <p>An example where this may be useful is on an intranet server
4228     where you have users connecting to the machine using short
4229     names such as <code>www</code>. You'll notice that if the users
4230     type a shortname, and a URL which is a directory, such as
4231     <code>http://www/splat</code>, <em>without the trailing
4232     slash</em> then Apache httpd will redirect them to
4233     <code>http://www.domain.com/splat/</code>. If you have
4234     authentication enabled, this will cause the user to have to
4235     authenticate twice (once for <code>www</code> and once again
4236     for <code>www.domain.com</code> -- see <a href="http://httpd.apache.org/docs/misc/FAQ.html#prompted-twice">the
4237     FAQ on this subject for more information</a>). But if
4238     <code class="directive">UseCanonicalName</code> is set <code>Off</code>, then
4239     Apache httpd will redirect to <code>http://www/splat/</code>.</p>
4240
4241     <p>There is a third option, <code>UseCanonicalName DNS</code>,
4242     which is intended for use with mass IP-based virtual hosting to
4243     support ancient clients that do not provide a
4244     <code>Host:</code> header. With this option Apache httpd does a
4245     reverse DNS lookup on the server IP address that the client
4246     connected to in order to work out self-referential URLs.</p>
4247
4248     <div class="warning"><h3>Warning</h3>
4249     <p>If CGIs make assumptions about the values of <code>SERVER_NAME</code>
4250     they may be broken by this option. The client is essentially free
4251     to give whatever value they want as a hostname. But if the CGI is
4252     only using <code>SERVER_NAME</code> to construct self-referential URLs
4253     then it should be just fine.</p>
4254     </div>
4255
4256 <h3>Consulte también</h3>
4257 <ul>
4258 <li><code class="directive"><a href="#usecanonicalphysicalport">UseCanonicalPhysicalPort</a></code></li>
4259 <li><code class="directive"><a href="#servername">ServerName</a></code></li>
4260 <li><code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code></li>
4261 </ul>
4262 </div>
4263 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
4264 <div class="directive-section"><h2><a name="UseCanonicalPhysicalPort" id="UseCanonicalPhysicalPort">UseCanonicalPhysicalPort</a> <a name="usecanonicalphysicalport" id="usecanonicalphysicalport">Directiva</a></h2>
4265 <table class="directive">
4266 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Configures how the server determines its own name and
4267 port</td></tr>
4268 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>UseCanonicalPhysicalPort On|Off</code></td></tr>
4269 <tr><th><a href="directive-dict.html#Default">Valor por defecto:</a></th><td><code>UseCanonicalPhysicalPort Off</code></td></tr>
4270 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory</td></tr>
4271 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
4272 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
4273 </table>
4274     <p>In many situations Apache httpd must construct a <em>self-referential</em>
4275     URL -- that is, a URL that refers back to the same server. With
4276     <code>UseCanonicalPhysicalPort On</code> Apache httpd will, when
4277     constructing the canonical port for the server to honor
4278     the <code class="directive"><a href="#usecanonicalname">UseCanonicalName</a></code> directive,
4279     provide the actual physical port number being used by this request
4280     as a potential port. With <code>UseCanonicalPhysicalPort Off</code>
4281     Apache httpd will not ever use the actual physical port number, instead
4282     relying on all configured information to construct a valid port number.</p>
4283
4284     <div class="note"><h3>Note</h3>
4285     <p>The ordering of when the physical port is used is as follows:<br /><br />
4286      <code>UseCanonicalName On</code></p>
4287      <ul>
4288       <li>Port provided in <code>Servername</code></li>
4289       <li>Physical port</li>
4290       <li>Default port</li>
4291      </ul>
4292      <code>UseCanonicalName Off | DNS</code>
4293      <ul>
4294       <li>Parsed port from <code>Host:</code> header</li>
4295       <li>Physical port</li>
4296       <li>Port provided in <code>Servername</code></li>
4297       <li>Default port</li>
4298      </ul>
4299     
4300     <p>With <code>UseCanonicalPhysicalPort Off</code>, the
4301     physical ports are removed from the ordering.</p>
4302     </div>
4303
4304
4305 <h3>Consulte también</h3>
4306 <ul>
4307 <li><code class="directive"><a href="#usecanonicalname">UseCanonicalName</a></code></li>
4308 <li><code class="directive"><a href="#servername">ServerName</a></code></li>
4309 <li><code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code></li>
4310 </ul>
4311 </div>
4312 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
4313 <div class="directive-section"><h2><a name="VirtualHost" id="VirtualHost">&lt;VirtualHost&gt;</a> <a name="virtualhost" id="virtualhost">Directiva</a></h2>
4314 <table class="directive">
4315 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Contains directives that apply only to a specific
4316 hostname or IP address</td></tr>
4317 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>&lt;VirtualHost
4318     <var>addr</var>[:<var>port</var>] [<var>addr</var>[:<var>port</var>]]
4319     ...&gt; ... &lt;/VirtualHost&gt;</code></td></tr>
4320 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config</td></tr>
4321 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
4322 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
4323 </table>
4324     <p><code class="directive">&lt;VirtualHost&gt;</code> and
4325     <code>&lt;/VirtualHost&gt;</code> are used to enclose a group of
4326     directives that will apply only to a particular virtual host. Any
4327     directive that is allowed in a virtual host context may be
4328     used. When the server receives a request for a document on a
4329     particular virtual host, it uses the configuration directives
4330     enclosed in the <code class="directive">&lt;VirtualHost&gt;</code>
4331     section. <var>Addr</var> can be:</p>
4332
4333     <ul>
4334       <li>The IP address of the virtual host;</li>
4335
4336       <li>A fully qualified domain name for the IP address of the
4337       virtual host (not recommended);</li>
4338
4339       <li>The character <code>*</code>, which is used only in combination with
4340       <code>NameVirtualHost *</code> to match all IP addresses; or</li>
4341
4342       <li>The string <code>_default_</code>, which is used only
4343       with IP virtual hosting to catch unmatched IP addresses.</li>
4344     </ul>
4345
4346     <div class="example"><h3>Example</h3><p><code>
4347       &lt;VirtualHost 10.1.2.3&gt;<br />
4348       <span class="indent">
4349         ServerAdmin webmaster@host.example.com<br />
4350         DocumentRoot /www/docs/host.example.com<br />
4351         ServerName host.example.com<br />
4352         ErrorLog logs/host.example.com-error_log<br />
4353         TransferLog logs/host.example.com-access_log<br />
4354       </span>
4355       &lt;/VirtualHost&gt;
4356     </code></p></div>
4357
4358
4359     <p>IPv6 addresses must be specified in square brackets because
4360     the optional port number could not be determined otherwise.  An
4361     IPv6 example is shown below:</p>
4362
4363     <div class="example"><p><code>
4364       &lt;VirtualHost [2001:db8::a00:20ff:fea7:ccea]&gt;<br />
4365       <span class="indent">
4366         ServerAdmin webmaster@host.example.com<br />
4367         DocumentRoot /www/docs/host.example.com<br />
4368         ServerName host.example.com<br />
4369         ErrorLog logs/host.example.com-error_log<br />
4370         TransferLog logs/host.example.com-access_log<br />
4371       </span>
4372       &lt;/VirtualHost&gt;
4373     </code></p></div>
4374
4375     <p>Each Virtual Host must correspond to a different IP address,
4376     different port number or a different host name for the server,
4377     in the former case the server machine must be configured to
4378     accept IP packets for multiple addresses. (If the machine does
4379     not have multiple network interfaces, then this can be
4380     accomplished with the <code>ifconfig alias</code> command -- if
4381     your OS supports it).</p>
4382
4383     <div class="note"><h3>Note</h3>
4384     <p>The use of <code class="directive">&lt;VirtualHost&gt;</code> does
4385     <strong>not</strong> affect what addresses Apache httpd listens on. You
4386     may need to ensure that Apache httpd is listening on the correct addresses
4387     using <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code>.</p>
4388     </div>
4389
4390     <p>When using IP-based virtual hosting, the special name
4391     <code>_default_</code> can be specified in
4392     which case this virtual host will match any IP address that is
4393     not explicitly listed in another virtual host. In the absence
4394     of any <code>_default_</code> virtual host the "main" server config,
4395     consisting of all those definitions outside any VirtualHost
4396     section, is used when no IP-match occurs.</p>
4397
4398     <p>You can specify a <code>:port</code> to change the port that is
4399     matched. If unspecified then it defaults to the same port as the
4400     most recent <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code>
4401     statement of the main server. You may also specify <code>:*</code>
4402     to match all ports on that address. (This is recommended when used
4403     with <code>_default_</code>.)</p>
4404
4405     <p>A <code class="directive"><a href="#servername">ServerName</a></code> should be
4406     specified inside each <code class="directive">&lt;VirtualHost&gt;</code> block. If it is absent, the
4407     <code class="directive"><a href="#servername">ServerName</a></code> from the "main"
4408     server configuration will be inherited.</p>
4409
4410     <p>If no matching virtual host is found, then the first listed
4411     virtual host that matches the IP address will be used.  As a
4412     consequence, the first listed virtual host is the default virtual
4413     host.</p>
4414
4415     <div class="warning"><h3>Security</h3>
4416     <p>See the <a href="../misc/security_tips.html">security tips</a>
4417     document for details on why your security could be compromised if the
4418     directory where log files are stored is writable by anyone other
4419     than the user that starts the server.</p>
4420     </div>
4421
4422 <h3>Consulte también</h3>
4423 <ul>
4424 <li><a href="../vhosts/">Apache HTTP Server Virtual Host documentation</a></li>
4425 <li><a href="../dns-caveats.html">Issues Regarding DNS and
4426     Apache HTTP Server</a></li>
4427 <li><a href="../bind.html">Setting
4428     which addresses and ports Apache HTTP Server uses</a></li>
4429 <li><a href="../sections.html">How &lt;Directory&gt;, &lt;Location&gt;
4430     and &lt;Files&gt; sections work</a> for an explanation of how these
4431     different sections are combined when a request is received</li>
4432 </ul>
4433 </div>
4434 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
4435 <div class="directive-section"><h2><a name="Warning" id="Warning">Warning</a> <a name="warning" id="warning">Directiva</a></h2>
4436 <table class="directive">
4437 <tr><th><a href="directive-dict.html#Description">Descripción:</a></th><td>Warn from configuration parsing with a custom message</td></tr>
4438 <tr><th><a href="directive-dict.html#Syntax">Sintaxis:</a></th><td><code>Warning <var>message</var></code></td></tr>
4439 <tr><th><a href="directive-dict.html#Context">Contexto:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
4440 <tr><th><a href="directive-dict.html#Status">Estado:</a></th><td>Core</td></tr>
4441 <tr><th><a href="directive-dict.html#Module">Módulo:</a></th><td>core</td></tr>
4442 <tr><th><a href="directive-dict.html#Compatibility">Compatibilidad:</a></th><td>2.5 and later</td></tr>
4443 </table><p>The documentation for this directive has
4444             not been translated yet. Please have a look at the English
4445             version.</p></div>
4446 </div>
4447 <div class="bottomlang">
4448 <p><span>Idiomas disponibles: </span><a href="../de/mod/core.html" hreflang="de" rel="alternate" title="Deutsch">&nbsp;de&nbsp;</a> |
4449 <a href="../en/mod/core.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
4450 <a href="../es/mod/core.html" title="Español">&nbsp;es&nbsp;</a> |
4451 <a href="../fr/mod/core.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
4452 <a href="../ja/mod/core.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
4453 <a href="../tr/mod/core.html" hreflang="tr" rel="alternate" title="Türkçe">&nbsp;tr&nbsp;</a></p>
4454 </div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comentarios</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>
4455 <script type="text/javascript"><!--//--><![CDATA[//><!--
4456 var comments_shortname = 'httpd';
4457 var comments_identifier = 'http://httpd.apache.org/docs/trunk/mod/core.html';
4458 (function(w, d) {
4459     if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
4460         d.write('<div id="comments_thread"><\/div>');
4461         var s = d.createElement('script');
4462         s.type = 'text/javascript';
4463         s.async = true;
4464         s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
4465         (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
4466     }
4467     else {
4468         d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
4469     }
4470 })(window, document);
4471 //--><!]]></script></div><div id="footer">
4472 <p class="apache">Copyright 2016 The Apache Software Foundation.<br />Licencia bajo los términos de la <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
4473 <p class="menu"><a href="../mod/">Módulos</a> | <a href="../mod/quickreference.html">Directivas</a> | <a href="http://wiki.apache.org/httpd/FAQ">Preguntas Frecuentes</a> | <a href="../glossary.html">Glosario</a> | <a href="../sitemap.html">Mapa del sitio web</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
4474 if (typeof(prettyPrint) !== 'undefined') {
4475     prettyPrint();
4476 }
4477 //--><!]]></script>
4478 </body></html>