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