diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 06:33:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 06:33:50 +0000 |
commit | fe39ffb8b90ae4e002ed73fe98617cd590abb467 (patch) | |
tree | b80e5956907d8aeaaffe4e4f0c068c0e6157ce8b /docs/manual/handler.html | |
parent | Initial commit. (diff) | |
download | apache2-fe39ffb8b90ae4e002ed73fe98617cd590abb467.tar.xz apache2-fe39ffb8b90ae4e002ed73fe98617cd590abb467.zip |
Adding upstream version 2.4.56.upstream/2.4.56upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | docs/manual/handler.html | 29 | ||||
-rw-r--r-- | docs/manual/handler.html.en | 182 | ||||
-rw-r--r-- | docs/manual/handler.html.es | 195 | ||||
-rw-r--r-- | docs/manual/handler.html.fr.utf8 | 188 | ||||
-rw-r--r-- | docs/manual/handler.html.ja.utf8 | 189 | ||||
-rw-r--r-- | docs/manual/handler.html.ko.euc-kr | 181 | ||||
-rw-r--r-- | docs/manual/handler.html.tr.utf8 | 179 | ||||
-rw-r--r-- | docs/manual/handler.html.zh-cn.utf8 | 157 |
8 files changed, 1300 insertions, 0 deletions
diff --git a/docs/manual/handler.html b/docs/manual/handler.html new file mode 100644 index 0000000..d6db324 --- /dev/null +++ b/docs/manual/handler.html @@ -0,0 +1,29 @@ +# GENERATED FROM XML -- DO NOT EDIT + +URI: handler.html.en +Content-Language: en +Content-type: text/html; charset=UTF-8 + +URI: handler.html.es +Content-Language: es +Content-type: text/html; charset=ISO-8859-1 + +URI: handler.html.fr.utf8 +Content-Language: fr +Content-type: text/html; charset=UTF-8 + +URI: handler.html.ja.utf8 +Content-Language: ja +Content-type: text/html; charset=UTF-8 + +URI: handler.html.ko.euc-kr +Content-Language: ko +Content-type: text/html; charset=EUC-KR + +URI: handler.html.tr.utf8 +Content-Language: tr +Content-type: text/html; charset=UTF-8 + +URI: handler.html.zh-cn.utf8 +Content-Language: zh-cn +Content-type: text/html; charset=UTF-8 diff --git a/docs/manual/handler.html.en b/docs/manual/handler.html.en new file mode 100644 index 0000000..231d6fc --- /dev/null +++ b/docs/manual/handler.html.en @@ -0,0 +1,182 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head> +<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> +<!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Apache's Handler Use - Apache HTTP Server Version 2.4</title> +<link href="./style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="./style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="./style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="./style/css/prettify.css" /> +<script src="./style/scripts/prettify.min.js" type="text/javascript"> +</script> + +<link href="./images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="./mod/">Modules</a> | <a href="./mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="./glossary.html">Glossary</a> | <a href="./sitemap.html">Sitemap</a></p> +<p class="apache">Apache HTTP Server Version 2.4</p> +<img alt="" src="./images/feather.png" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="./images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="./">Version 2.4</a></div><div id="page-content"><div id="preamble"><h1>Apache's Handler Use</h1> +<div class="toplang"> +<p><span>Available Languages: </span><a href="./en/handler.html" title="English"> en </a> | +<a href="./es/handler.html" hreflang="es" rel="alternate" title="Español"> es </a> | +<a href="./fr/handler.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="./ja/handler.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="./ko/handler.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="./tr/handler.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a> | +<a href="./zh-cn/handler.html" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p> +</div> + + <p>This document describes the use of Apache's Handlers.</p> + </div> +<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><ul id="toc"><li><img alt="" src="./images/down.gif" /> <a href="#definition">What is a Handler</a></li> +<li><img alt="" src="./images/down.gif" /> <a href="#examples">Examples</a></li> +<li><img alt="" src="./images/down.gif" /> <a href="#programmer">Programmer's Note</a></li> +</ul><h3>See also</h3><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="definition" id="definition">What is a Handler</a></h2> + + <table class="related"><tr><th>Related Modules</th><th>Related Directives</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_actions.html">mod_actions</a></code></li><li><code class="module"><a href="./mod/mod_asis.html">mod_asis</a></code></li><li><code class="module"><a href="./mod/mod_cgi.html">mod_cgi</a></code></li><li><code class="module"><a href="./mod/mod_imagemap.html">mod_imagemap</a></code></li><li><code class="module"><a href="./mod/mod_info.html">mod_info</a></code></li><li><code class="module"><a href="./mod/mod_mime.html">mod_mime</a></code></li><li><code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code></li><li><code class="module"><a href="./mod/mod_status.html">mod_status</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/mod_actions.html#action">Action</a></code></li><li><code class="directive"><a href="./mod/mod_mime.html#addhandler">AddHandler</a></code></li><li><code class="directive"><a href="./mod/mod_mime.html#removehandler">RemoveHandler</a></code></li><li><code class="directive"><a href="./mod/core.html#sethandler">SetHandler</a></code></li></ul></td></tr></table> + + + <p>A "handler" is an internal Apache representation of the + action to be performed when a file is called. Generally, files + have implicit handlers, based on the file type. Normally, all + files are simply served by the server, but certain file types + are "handled" separately.</p> + + <p>Handlers may also be configured explicitly, + based on either filename extensions or on location, + without relation to file type. This is + advantageous both because it is a more elegant solution, and + because it also allows for both a type <strong>and</strong> a + handler to be associated with a file. (See also <a href="mod/mod_mime.html#multipleext">Files with Multiple + Extensions</a>.)</p> + + <p>Handlers can either be built into the server or included in + a module, or they can be added with the <code class="directive"><a href="./mod/mod_actions.html#action">Action</a></code> directive. The + built-in handlers in the standard distribution are as + follows:</p> + + <ul> + <li><strong>default-handler</strong>: Send the file using the + <code>default_handler()</code>, which is the handler used by + default to handle static content. (core)</li> + + <li><strong>send-as-is</strong>: Send file with HTTP headers + as is. (<code class="module"><a href="./mod/mod_asis.html">mod_asis</a></code>)</li> + + <li><strong>cgi-script</strong>: Treat the file as a CGI + script. (<code class="module"><a href="./mod/mod_cgi.html">mod_cgi</a></code>)</li> + + <li><strong>imap-file</strong>: Parse as an imagemap rule + file. (<code class="module"><a href="./mod/mod_imagemap.html">mod_imagemap</a></code>)</li> + + <li><strong>server-info</strong>: Get the server's + configuration information. (<code class="module"><a href="./mod/mod_info.html">mod_info</a></code>)</li> + + <li><strong>server-status</strong>: Get the server's status + report. (<code class="module"><a href="./mod/mod_status.html">mod_status</a></code>)</li> + + <li><strong>type-map</strong>: Parse as a type map file for + content negotiation. (<code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code>)</li> + </ul> + </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="examples" id="examples">Examples</a></h2> + + + <h3><a name="example1" id="example1">Modifying static content using a CGI script</a></h3> + + + <p>The following directives will cause requests for files with + the <code>html</code> extension to trigger the launch of the + <code>footer.pl</code> CGI script.</p> + + <pre class="prettyprint lang-config">Action add-footer /cgi-bin/footer.pl +AddHandler add-footer .html</pre> + + + <p>Then the CGI script is responsible for sending the + originally requested document (pointed to by the + <code>PATH_TRANSLATED</code> environment variable) and making + whatever modifications or additions are desired.</p> + + + <h3><a name="example2" id="example2">Files with HTTP headers</a></h3> + + + <p>The following directives will enable the + <code>send-as-is</code> handler, which is used for files which + contain their own HTTP headers. All files in the + <code>/web/htdocs/asis/</code> directory will be processed by + the <code>send-as-is</code> handler, regardless of their + filename extensions.</p> + + <pre class="prettyprint lang-config"><Directory "/web/htdocs/asis"> + SetHandler send-as-is +</Directory></pre> + + + + </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="programmer" id="programmer">Programmer's Note</a></h2> + + + <p>In order to implement the handler features, an addition has + been made to the <a href="developer/API.html">Apache API</a> that + you may wish to make use of. Specifically, a new record has + been added to the <code>request_rec</code> structure:</p> + + <pre class="prettyprint lang-c">char *handler</pre> + + + <p>If you wish to have your module engage a handler, you need + only to set <code>r->handler</code> to the name of the + handler at any time prior to the <code>invoke_handler</code> + stage of the request. Handlers are implemented as they were + before, albeit using the handler name instead of a content + type. While it is not necessary, the naming convention for + handlers is to use a dash-separated word, with no slashes, so + as to not invade the media type name-space.</p> + </div></div> +<div class="bottomlang"> +<p><span>Available Languages: </span><a href="./en/handler.html" title="English"> en </a> | +<a href="./es/handler.html" hreflang="es" rel="alternate" title="Español"> es </a> | +<a href="./fr/handler.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="./ja/handler.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="./ko/handler.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="./tr/handler.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a> | +<a href="./zh-cn/handler.html" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p> +</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">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed 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 Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div> +<script type="text/javascript"><!--//--><![CDATA[//><!-- +var comments_shortname = 'httpd'; +var comments_identifier = 'http://httpd.apache.org/docs/2.4/handler.html'; +(function(w, d) { + if (w.location.hostname.toLowerCase() == "httpd.apache.org") { + d.write('<div id="comments_thread"><\/div>'); + var s = d.createElement('script'); + s.type = 'text/javascript'; + s.async = true; + s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; + (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); + } + else { + d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); + } +})(window, document); +//--><!]]></script></div><div id="footer"> +<p class="apache">Copyright 2023 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="./mod/">Modules</a> | <a href="./mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="./glossary.html">Glossary</a> | <a href="./sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- +if (typeof(prettyPrint) !== 'undefined') { + prettyPrint(); +} +//--><!]]></script> +</body></html>
\ No newline at end of file diff --git a/docs/manual/handler.html.es b/docs/manual/handler.html.es new file mode 100644 index 0000000..b5caeac --- /dev/null +++ b/docs/manual/handler.html.es @@ -0,0 +1,195 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="es" xml:lang="es"><head> +<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" /> +<!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Uso de los Handlers en Apache - Servidor HTTP Apache Versión 2.4</title> +<link href="./style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="./style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="./style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="./style/css/prettify.css" /> +<script src="./style/scripts/prettify.min.js" type="text/javascript"> +</script> + +<link href="./images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="./mod/">Módulos</a> | <a href="./mod/directives.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> +<p class="apache">Versión 2.4 del Servidor HTTP Apache</p> +<img alt="" src="./images/feather.png" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="./images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">Servidor HTTP</a> > <a href="http://httpd.apache.org/docs/">Documentación</a> > <a href="./">Versión 2.4</a></div><div id="page-content"><div id="preamble"><h1>Uso de los Handlers en Apache</h1> +<div class="toplang"> +<p><span>Idiomas disponibles: </span><a href="./en/handler.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="./es/handler.html" title="Español"> es </a> | +<a href="./fr/handler.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="./ja/handler.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="./ko/handler.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="./tr/handler.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a> | +<a href="./zh-cn/handler.html" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p> +</div> + + <p>Este documento describe el uso de los Handlers en Apache.</p> + </div> +<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><ul id="toc"><li><img alt="" src="./images/down.gif" /> <a href="#definition">¿Qué es un Handler?</a></li> +<li><img alt="" src="./images/down.gif" /> <a href="#examples">Ejemplos</a></li> +<li><img alt="" src="./images/down.gif" /> <a href="#programmer">Nota para programadores</a></li> +</ul><h3>Consulte también</h3><ul class="seealso"><li><a href="#comments_section">Comentarios</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="definition" id="definition">¿Qué es un Handler?</a></h2> + + <table class="related"><tr><th>Módulos Relacionados</th><th>Directivas Relacionadas</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_actions.html">mod_actions</a></code></li><li><code class="module"><a href="./mod/mod_asis.html">mod_asis</a></code></li><li><code class="module"><a href="./mod/mod_cgi.html">mod_cgi</a></code></li><li><code class="module"><a href="./mod/mod_imagemap.html">mod_imagemap</a></code></li><li><code class="module"><a href="./mod/mod_info.html">mod_info</a></code></li><li><code class="module"><a href="./mod/mod_mime.html">mod_mime</a></code></li><li><code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code></li><li><code class="module"><a href="./mod/mod_status.html">mod_status</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/mod_actions.html#action">Action</a></code></li><li><code class="directive"><a href="./mod/mod_mime.html#addhandler">AddHandler</a></code></li><li><code class="directive"><a href="./mod/mod_mime.html#removehandler">RemoveHandler</a></code></li><li><code class="directive"><a href="./mod/core.html#sethandler">SetHandler</a></code></li></ul></td></tr></table> + + + <p>Un "handler" es una representación interna de Apache de + una acción que se va a ejecutar cuando hay una llamada a un + fichero. Generalmente, los ficheros tienen handlers + implícitos, basados en el tipo de fichero de que se + trata. Normalmente, todos los ficheros son simplemente servidos + por el servidor, pero algunos tipos de ficheros se tratan de forma + diferente.</p> + + <p>Handlers pueden ser usados de manera explicita, + basándose en la extensión del fichero o en + la ubicación en la que esté, se pueden especificar handlers + sin tener en cuenta el tipo de fichero que se trate. Esto es + una ventaja por dos razones. Primero, es una solución + más elegante. Segundo, porque a un fichero se le pueden + asignar tanto un tipo <strong>como</strong> un handler. (Consulte + también la sección <a href="mod/mod_mime.html#multipleext">Ficheros y extensiones + múltiples</a>.)</p> + + <p>Los Handlers pueden tanto ser compilados con el servidor + como incluidos en un módulo, o añadidos con la + directiva <code class="directive"><a href="./mod/mod_actions.html#action">Action</a></code>. Los + handlers que vienen incluidos en el core con el servidor de la distribución + estándar de Apache son:</p> + + <ul> + <li><strong>default-handler</strong>: Envía el fichero + usando el <code>default_handler()</code>, que es el handler + usado por defecto para tratar contenido + estático. (core)</li> + + <li><strong>send-as-is</strong>: Envía el fichero con + cabeceras HTTP tal y como es. (<code class="module"><a href="./mod/mod_asis.html">mod_asis</a></code>)</li> + + <li><strong>cgi-script</strong>: Trata el fichero como un sript + CGI. (<code class="module"><a href="./mod/mod_cgi.html">mod_cgi</a></code>)</li> + + <li><strong>imap-file</strong>: Trata el fichero como un mapa de + imágenes. (<code class="module"><a href="./mod/mod_imagemap.html">mod_imagemap</a></code>)</li> + + <li><strong>server-info</strong>: Extrae la información de + configuración del + servidor. (<code class="module"><a href="./mod/mod_info.html">mod_info</a></code>)</li> + + <li><strong>server-status</strong>: Extrae el informe del estado + del servidor. (<code class="module"><a href="./mod/mod_status.html">mod_status</a></code>)</li> + + <li><strong>type-map</strong>: Trata el fichero como una + correspondencia de tipos para la negociación de contenidos. + (<code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code>)</li> + </ul> + </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="examples" id="examples">Ejemplos</a></h2> + + + <h3><a name="example1" id="example1">Modificar contenido estático usando un script + CGI</a></h3> + + + <p>Las siguientes directivas hacen que cuando haya una + petición de ficheros con la extensión + <code>html</code> se lance el script CGI + <code>footer.pl</code>.</p> + + <div class="example"><p><code> + Action add-footer /cgi-bin/footer.pl<br /> + AddHandler add-footer .html + </code></p></div> + + <p>En este caso, el script CGI es el responsable de enviar el + documento originalmente solicitado (contenido en la variable de + entorno <code>PATH_TRANSLATED</code>) y de hacer cualquier + modificación o añadido deseado.</p> + + + <h3><a name="example2" id="example2">Archivos con cabeceras HTTP</a></h3> + + + <p>Las siguientes directivas activan el handler + <code>send-as-is</code>, que se usa para ficheros que contienen + sus propias cabeceras HTTP. Todos los archivos en el directorio + <code>/web/htdocs/asis/</code> serán procesados por el + handler <code>send-as-is</code>, sin tener en cuenta su + extension.</p> + + <pre class="prettyprint lang-config"><Directory "/web/htdocs/asis"> + SetHandler send-as-is +</Directory></pre> + + + + </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="programmer" id="programmer">Nota para programadores</a></h2> + + + <p>Para implementar las funcionalidades de los handlers, se ha + hecho un añadido a la <a href="developer/API.html">API de + Apache</a> que puede que quiera usar. Para ser más + específicos, se ha añadido un nuevo registro a la + estructura <code>request_rec</code>:</p> + + <pre class="prettyprint lang-c">char *handler</pre> + + + <p>Si quiere que su módulo llame a un handler , solo tiene + que añadir <code>r->handler</code> al nombre del handler + en cualquier momento antes de la fase <code>invoke_handler</code> + de la petición. Los handlers se implementan siempre como se + hacía antes, aunque usando el nombre del handler en vez de un + tipo de contenido. Aunque no es de obligado cumplimiento, la + convención de nombres para los handlers es que se usen + palabras separadas por guiones, sin barras, de manera que no se + invada el media type name-space.</p> + </div></div> +<div class="bottomlang"> +<p><span>Idiomas disponibles: </span><a href="./en/handler.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="./es/handler.html" title="Español"> es </a> | +<a href="./fr/handler.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="./ja/handler.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="./ko/handler.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="./tr/handler.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a> | +<a href="./zh-cn/handler.html" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p> +</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&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed 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 Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div> +<script type="text/javascript"><!--//--><![CDATA[//><!-- +var comments_shortname = 'httpd'; +var comments_identifier = 'http://httpd.apache.org/docs/2.4/handler.html'; +(function(w, d) { + if (w.location.hostname.toLowerCase() == "httpd.apache.org") { + d.write('<div id="comments_thread"><\/div>'); + var s = d.createElement('script'); + s.type = 'text/javascript'; + s.async = true; + s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; + (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); + } + else { + d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); + } +})(window, document); +//--><!]]></script></div><div id="footer"> +<p class="apache">Copyright 2023 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> +<p class="menu"><a href="./mod/">Módulos</a> | <a href="./mod/directives.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[//><!-- +if (typeof(prettyPrint) !== 'undefined') { + prettyPrint(); +} +//--><!]]></script> +</body></html>
\ No newline at end of file diff --git a/docs/manual/handler.html.fr.utf8 b/docs/manual/handler.html.fr.utf8 new file mode 100644 index 0000000..3a2ca51 --- /dev/null +++ b/docs/manual/handler.html.fr.utf8 @@ -0,0 +1,188 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr"><head> +<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> +<!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Utilisation des gestionnaires d'Apache (handlers) - Serveur HTTP Apache Version 2.4</title> +<link href="./style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="./style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="./style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="./style/css/prettify.css" /> +<script src="./style/scripts/prettify.min.js" type="text/javascript"> +</script> + +<link href="./images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="./mod/">Modules</a> | <a href="./mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="./glossary.html">Glossaire</a> | <a href="./sitemap.html">Plan du site</a></p> +<p class="apache">Serveur HTTP Apache Version 2.4</p> +<img alt="" src="./images/feather.png" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="./images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">Serveur HTTP</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="./">Version 2.4</a></div><div id="page-content"><div id="preamble"><h1>Utilisation des gestionnaires d'Apache (handlers)</h1> +<div class="toplang"> +<p><span>Langues Disponibles: </span><a href="./en/handler.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="./es/handler.html" hreflang="es" rel="alternate" title="Español"> es </a> | +<a href="./fr/handler.html" title="Français"> fr </a> | +<a href="./ja/handler.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="./ko/handler.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="./tr/handler.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a> | +<a href="./zh-cn/handler.html" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p> +</div> + + <p>Ce document décrit l'utilisation des gestionnaires d'Apache (handlers).</p> + </div> +<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><ul id="toc"><li><img alt="" src="./images/down.gif" /> <a href="#definition">Qu'est-ce qu'un gestionnaire ?</a></li> +<li><img alt="" src="./images/down.gif" /> <a href="#examples">Exemples</a></li> +<li><img alt="" src="./images/down.gif" /> <a href="#programmer">Note du développeur</a></li> +</ul><h3>Voir aussi</h3><ul class="seealso"><li><a href="#comments_section">Commentaires</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="definition" id="definition">Qu'est-ce qu'un gestionnaire ?</a></h2> + + <table class="related"><tr><th>Modules Apparentés</th><th>Directives Apparentées</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_actions.html">mod_actions</a></code></li><li><code class="module"><a href="./mod/mod_asis.html">mod_asis</a></code></li><li><code class="module"><a href="./mod/mod_cgi.html">mod_cgi</a></code></li><li><code class="module"><a href="./mod/mod_imagemap.html">mod_imagemap</a></code></li><li><code class="module"><a href="./mod/mod_info.html">mod_info</a></code></li><li><code class="module"><a href="./mod/mod_mime.html">mod_mime</a></code></li><li><code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code></li><li><code class="module"><a href="./mod/mod_status.html">mod_status</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/mod_actions.html#action">Action</a></code></li><li><code class="directive"><a href="./mod/mod_mime.html#addhandler">AddHandler</a></code></li><li><code class="directive"><a href="./mod/mod_mime.html#removehandler">RemoveHandler</a></code></li><li><code class="directive"><a href="./mod/core.html#sethandler">SetHandler</a></code></li></ul></td></tr></table> + + + <p>Un "gestionnaire" est une représentation interne à Apache de l'action + qui doit être entreprise quand un fichier est appelé. En général, les + fichiers ont des gestionnaires implicites, basés sur le type du fichier. + Normalement, tous les fichiers sont traités simplement par le serveur, + mais certains types de fichiers sont "gérés" séparément.</p> + + <p>Les gestionnaires peuvent aussi être configurés explicitement, + soit en fonction des extensions des noms de fichier, soit en fonction + du chemin du fichier, + sans faire référence au type de fichier. Ceci a le double avantage d'être + une solution plus élégante, et aussi d'autoriser à associer à la fois + un type <strong>et</strong> un gestionnaire avec un fichier. (Voir aussi <a href="mod/mod_mime.html#multipleext">Fichiers avec extensions + multiples</a>.)</p> + + <p>Les gestionnaires peuvent être soit partie intégrante + du serveur ou inclus dans un module, soit ajoutés à l'aide de la directive + <code class="directive"><a href="./mod/mod_actions.html#action">Action</a></code>. Les gestionnaires + intégrés dans la distribution standard se présentent comme suit :</p> + + <ul> + <li><strong>default-handler</strong>: envoie le fichier en utilisant + le <code>default_handler()</code>, qui est le gestionnaire utilisé par + défaut pour traiter les contenus statiques. (core)</li> + + <li><strong>send-as-is</strong>: envoie les fichiers avec en-têtes HTTP + tels quels. (<code class="module"><a href="./mod/mod_asis.html">mod_asis</a></code>)</li> + + <li><strong>cgi-script</strong>: traite le fichier comme un + script CGI. (<code class="module"><a href="./mod/mod_cgi.html">mod_cgi</a></code>)</li> + + <li><strong>imap-file</strong>: Traite le fichier comme un ensemble + de règles de descriptions d'images (imagemap). + (<code class="module"><a href="./mod/mod_imagemap.html">mod_imagemap</a></code>)</li> + + <li><strong>server-info</strong>: Extrait des informations sur la + configuration du serveur. (<code class="module"><a href="./mod/mod_info.html">mod_info</a></code>)</li> + + <li><strong>server-status</strong>: Rédige un rapport sur le statut + du serveur. (<code class="module"><a href="./mod/mod_status.html">mod_status</a></code>)</li> + + <li><strong>type-map</strong>: Traite le fichier comme une description + de type pour la négociation du contenu. + (<code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code>)</li> + </ul> + </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="examples" id="examples">Exemples</a></h2> + + + <h3><a name="example1" id="example1">Modification d'un contenu statique à l'aide d'un script CGI</a></h3> + + + <p>Les directives suivantes vont faire en sorte que les requêtes pour + des fichiers possédant une extension <code>html</code> déclenchent + l'exécution du script CGI <code>footer.pl</code>.</p> + + <pre class="prettyprint lang-config">Action add-footer /cgi-bin/footer.pl +AddHandler add-footer .html</pre> + + + <p>À ce moment-là, le script CGI se charge d'envoyer le document + initialement demandé (référencé par la variable d'environnement + <code>PATH_TRANSLATED</code>) et d'effectuer tous ajout ou modification + voulus.</p> + + + <h3><a name="example2" id="example2">Fichiers avec en-têtes HTTP</a></h3> + + + <p>Les directives suivantes vont activer le gestionnaire + <code>send-as-is</code>, qui est utilisé pour les fichiers qui possèdent + leurs propres en-têtes HTTP. Tous les fichiers situés dans le répertoire + <code>/web/htdocs/asis/</code> seront traités par le gestionnaire + <code>send-as-is</code>, sans tenir compte de l'extension + de leur nom de fichier.</p> + + <pre class="prettyprint lang-config"><Directory "/web/htdocs/asis"> + SetHandler send-as-is +</Directory></pre> + + + + </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="programmer" id="programmer">Note du développeur</a></h2> + + + <p>Pour implémenter la fonctionnalité des gestionnaires, l' + <a href="developer/API.html">API Apache</a> a fait l'objet d'un ajout + que vous pourriez être amené à utiliser. + + Plus précisément, un nouvel enregistrement a été ajouté à la structure + <code>request_rec</code> :</p> + + <pre class="prettyprint lang-c">char *handler</pre> + + + <p>Si vous voulez que votre module déclenche l'utilisation d'un + gestionnaire, il vous suffit de définir <code>r->handler</code> avec + le nom du gestionnaire à n'importe quel moment avant l'étape + <code>invoke_handler</code> + de la requête. Les gestionnaires sont implémentés comme auparavant, + quoique l'on utilise le nom du gestionnaire à la place d'un type + de contenu. Bien que ce ne soit pas obligatoire, la convention de nommage + des gestionnaires stipule l'utilisation d'un mot composé séparé par des + tirets, sans slashes, afin de ne pas interférer avec l'espace de nommage + des types de média.</p> + </div></div> +<div class="bottomlang"> +<p><span>Langues Disponibles: </span><a href="./en/handler.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="./es/handler.html" hreflang="es" rel="alternate" title="Español"> es </a> | +<a href="./fr/handler.html" title="Français"> fr </a> | +<a href="./ja/handler.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="./ko/handler.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="./tr/handler.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a> | +<a href="./zh-cn/handler.html" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p> +</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">Commentaires</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed 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 Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div> +<script type="text/javascript"><!--//--><![CDATA[//><!-- +var comments_shortname = 'httpd'; +var comments_identifier = 'http://httpd.apache.org/docs/2.4/handler.html'; +(function(w, d) { + if (w.location.hostname.toLowerCase() == "httpd.apache.org") { + d.write('<div id="comments_thread"><\/div>'); + var s = d.createElement('script'); + s.type = 'text/javascript'; + s.async = true; + s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; + (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); + } + else { + d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); + } +})(window, document); +//--><!]]></script></div><div id="footer"> +<p class="apache">Copyright 2023 The Apache Software Foundation.<br />Autorisé sous <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="./mod/">Modules</a> | <a href="./mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="./glossary.html">Glossaire</a> | <a href="./sitemap.html">Plan du site</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- +if (typeof(prettyPrint) !== 'undefined') { + prettyPrint(); +} +//--><!]]></script> +</body></html>
\ No newline at end of file diff --git a/docs/manual/handler.html.ja.utf8 b/docs/manual/handler.html.ja.utf8 new file mode 100644 index 0000000..19ce38d --- /dev/null +++ b/docs/manual/handler.html.ja.utf8 @@ -0,0 +1,189 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head> +<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> +<!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Apache のハンドラの使用 - Apache HTTP サーバ バージョン 2.4</title> +<link href="./style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="./style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="./style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="./style/css/prettify.css" /> +<script src="./style/scripts/prettify.min.js" type="text/javascript"> +</script> + +<link href="./images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="./mod/">モジュール</a> | <a href="./mod/directives.html">ディレクティブ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="./glossary.html">用語</a> | <a href="./sitemap.html">サイトマップ</a></p> +<p class="apache">Apache HTTP サーバ バージョン 2.4</p> +<img alt="" src="./images/feather.png" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="./images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP サーバ</a> > <a href="http://httpd.apache.org/docs/">ドキュメンテーション</a> > <a href="./">バージョン 2.4</a></div><div id="page-content"><div id="preamble"><h1>Apache のハンドラの使用</h1> +<div class="toplang"> +<p><span>翻訳済み言語: </span><a href="./en/handler.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="./es/handler.html" hreflang="es" rel="alternate" title="Español"> es </a> | +<a href="./fr/handler.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="./ja/handler.html" title="Japanese"> ja </a> | +<a href="./ko/handler.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="./tr/handler.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a> | +<a href="./zh-cn/handler.html" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p> +</div> +<div class="outofdate">この日本語訳はすでに古くなっている + 可能性があります。 + 最近更新された内容を見るには英語版をご覧下さい。 + </div> + + <p>Apache のハンドラの使用に関して記述しています。</p> + </div> +<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><ul id="toc"><li><img alt="" src="./images/down.gif" /> <a href="#definition">ハンドラとは</a></li> +<li><img alt="" src="./images/down.gif" /> <a href="#examples">例</a></li> +<li><img alt="" src="./images/down.gif" /> <a href="#programmer">プログラマ向けのメモ</a></li> +</ul><h3>参照</h3><ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="definition" id="definition">ハンドラとは</a></h2> + + <table class="related"><tr><th>関連モジュール</th><th>関連ディレクティブ</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_actions.html">mod_actions</a></code></li><li><code class="module"><a href="./mod/mod_asis.html">mod_asis</a></code></li><li><code class="module"><a href="./mod/mod_cgi.html">mod_cgi</a></code></li><li><code class="module"><a href="./mod/mod_imagemap.html">mod_imagemap</a></code></li><li><code class="module"><a href="./mod/mod_info.html">mod_info</a></code></li><li><code class="module"><a href="./mod/mod_mime.html">mod_mime</a></code></li><li><code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code></li><li><code class="module"><a href="./mod/mod_status.html">mod_status</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/mod_actions.html#action">Action</a></code></li><li><code class="directive"><a href="./mod/mod_mime.html#addhandler">AddHandler</a></code></li><li><code class="directive"><a href="./mod/mod_mime.html#removehandler">RemoveHandler</a></code></li><li><code class="directive"><a href="./mod/core.html#sethandler">SetHandler</a></code></li></ul></td></tr></table> + + + <p>「ハンドラ」とは、ファイルが呼ばれたときに実行される動作の + Apache における内部表現です。 + 通常、ファイルはファイルタイプ<span class="transnote">(<em>訳注:</em> MIME-type)</span>に基づいた暗黙のハンドラがあります。 + 普通はすべてのファイルは単にサーバに扱われますが、 + ファイルタイプの中には別に「ハンドル」<span class="transnote">(<em>訳注:</em> 扱う)</span> + されるものもあります。</p> + + <p>ファイルの拡張子や置いている場所に基づいてファイルタイプと関係なく、 + ハンドラを明示的に設定することもできます。 + これはより優雅な解決法という点と、ファイルにタイプ<strong>と</strong>ハンドラの両方を関連付けることができるという点で優れています。 + (<a href="mod/mod_mime.html#multipleext">複数の拡張子のあるファイル</a>も参照してください)。</p> + + <p>ハンドラはサーバに組み込んだり、モジュールとして含めたり、 + <code class="directive"><a href="./mod/mod_actions.html#action">Action</a></code> + ディレクティブとして追加したりすることができます。 + 以下は標準配布に組み込まれているハンドラです。 + </p> + + <ul> + <li><strong>default-handler</strong>:<code>default_handelr()</code> + を使ってファイルを送ります。 + 静的なコンテンツを扱うときにデフォルトで使用されるハンドラです。 + (<code class="module"><a href="./mod/core.html">core</a></code>)</li> + + <li><strong>send-as-is</strong>: + HTTP ヘッダのあるファイルをそのまま送ります。 + (<code class="module"><a href="./mod/mod_asis.html">mod_asis</a></code>)</li> + + <li><strong>cgi-script</strong>: ファイルを CGI + スクリプトとして扱います。 + (<code class="module"><a href="./mod/mod_cgi.html">mod_cgi</a></code>)</li> + + <li><strong>imap-file</strong>: + イメージマップのルールファイルとして解析します。 + (<code class="module"><a href="./mod/mod_imagemap.html">mod_imagemap</a></code>)</li> + + <li><strong>server-info</strong>: サーバの設定情報を取得します。 + (<code class="module"><a href="./mod/mod_info.html">mod_info</a></code>)</li> + + <li><strong>server-status</strong>: サーバの状態報告を取得します。 + (<code class="module"><a href="./mod/mod_status.html">mod_status</a></code>)</li> + + <li><strong>type-map</strong>: + コンテントネゴシエーションのためのタイプマップとして解析します。 + (<code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code>)</li> + </ul> + </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="examples" id="examples">例</a></h2> + + + <h3><a name="example1" id="example1">CGI スクリプトを用いて静的なコンテンツを変更する</a></h3> + + + <p>以下のディレクティブによって、拡張子が <code>html</code> + であるファイルは <code>footer.pl</code> + CGI スクリプトを起動するようになります。</p> + + <pre class="prettyprint lang-config">Action add-footer /cgi-bin/footer.pl +AddHandler add-footer .html</pre> + + + <p>CGI スクリプトは希望の修正や追加を行なって、元々要求された文書 + (環境変数 <code>PATH_TRANSLATED</code> + で指されています) を送る責任があります。 + </p> + + + <h3><a name="example2" id="example2">HTTP ヘッダのあるファイル</a></h3> + + + <p>以下のディレクティブは <code>send-as-is</code> + ハンドラを使用するように指示します。このハンドラは自分自身の HTTP + ヘッダを持っているファイルに使用されます。ここでは、拡張子に関わらず、 + <code>/web/htdocs/asis</code> ディレクトリにある全てのファイルは + <code>send-as-is</code> ハンドラによって扱われます。</p> + + <pre class="prettyprint lang-config"><Directory /web/htdocs/asis> + SetHandler send-as-is +</Directory></pre> + + + + </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="programmer" id="programmer">プログラマ向けのメモ</a></h2> + + + <p>ハンドラの機能を実装するために、利用すると便利かもしれないものが + <a href="developer/API.html">Apache API</a> + に追加されました。詳しく言うと、<code>request_rec</code> + 構造体に新しいレコードが追加されたということです。</p> + + <pre class="prettyprint lang-c">char *handler</pre> + + + <p>もしモジュールがハンドラに関わりたい場合、 + やらなければならないことは、リクエストが <code>invoke_handler</code> + ステージに達する以前に <code>r->handler</code> + を設定することだけです。ハンドラはコンテントタイプの代わりに + ハンドラ名を使うようになっていること以外は、以前と同じように実装されています。 + 必ず要求されているわけではありませんが、メディアタイプ + の名前空間を侵さないように、ハンドラの名前にはスラッシュを含まない、 + ダッシュ<span class="transnote">(<em>訳注:</em> "-")</span>で分離された名前を付ける習慣になっています。</p> + </div></div> +<div class="bottomlang"> +<p><span>翻訳済み言語: </span><a href="./en/handler.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="./es/handler.html" hreflang="es" rel="alternate" title="Español"> es </a> | +<a href="./fr/handler.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="./ja/handler.html" title="Japanese"> ja </a> | +<a href="./ko/handler.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="./tr/handler.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a> | +<a href="./zh-cn/handler.html" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p> +</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">コメント</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed 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 Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div> +<script type="text/javascript"><!--//--><![CDATA[//><!-- +var comments_shortname = 'httpd'; +var comments_identifier = 'http://httpd.apache.org/docs/2.4/handler.html'; +(function(w, d) { + if (w.location.hostname.toLowerCase() == "httpd.apache.org") { + d.write('<div id="comments_thread"><\/div>'); + var s = d.createElement('script'); + s.type = 'text/javascript'; + s.async = true; + s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; + (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); + } + else { + d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); + } +})(window, document); +//--><!]]></script></div><div id="footer"> +<p class="apache">Copyright 2023 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p> +<p class="menu"><a href="./mod/">モジュール</a> | <a href="./mod/directives.html">ディレクティブ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="./glossary.html">用語</a> | <a href="./sitemap.html">サイトマップ</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- +if (typeof(prettyPrint) !== 'undefined') { + prettyPrint(); +} +//--><!]]></script> +</body></html>
\ No newline at end of file diff --git a/docs/manual/handler.html.ko.euc-kr b/docs/manual/handler.html.ko.euc-kr new file mode 100644 index 0000000..312b3c5 --- /dev/null +++ b/docs/manual/handler.html.ko.euc-kr @@ -0,0 +1,181 @@ +<?xml version="1.0" encoding="EUC-KR"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head> +<meta content="text/html; charset=EUC-KR" http-equiv="Content-Type" /> +<!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>ġ ڵ鷯 - Apache HTTP Server Version 2.4</title> +<link href="./style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="./style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="./style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="./style/css/prettify.css" /> +<script src="./style/scripts/prettify.min.js" type="text/javascript"> +</script> + +<link href="./images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="./mod/"></a> | <a href="./mod/directives.html">þ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="./glossary.html"></a> | <a href="./sitemap.html">Ʈ</a></p> +<p class="apache">Apache HTTP Server Version 2.4</p> +<img alt="" src="./images/feather.png" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="./images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="./">Version 2.4</a></div><div id="page-content"><div id="preamble"><h1>ġ ڵ鷯 </h1> +<div class="toplang"> +<p><span> : </span><a href="./en/handler.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="./es/handler.html" hreflang="es" rel="alternate" title="Español"> es </a> | +<a href="./fr/handler.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="./ja/handler.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="./ko/handler.html" title="Korean"> ko </a> | +<a href="./tr/handler.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a> | +<a href="./zh-cn/handler.html" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p> +</div> +<div class="outofdate"> ֽ ƴմϴ. + ֱٿ ϼ.</div> + + <p> ġ ڵ鷯 ϴ Ѵ.</p> + </div> +<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><ul id="toc"><li><img alt="" src="./images/down.gif" /> <a href="#definition">ڵ鷯 ΰ</a></li> +<li><img alt="" src="./images/down.gif" /> <a href="#examples"></a></li> +<li><img alt="" src="./images/down.gif" /> <a href="#programmer">αӸ </a></li> +</ul><h3></h3><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="definition" id="definition">ڵ鷯 ΰ</a></h2> + + <table class="related"><tr><th>õ </th><th>õ þ</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_actions.html">mod_actions</a></code></li><li><code class="module"><a href="./mod/mod_asis.html">mod_asis</a></code></li><li><code class="module"><a href="./mod/mod_cgi.html">mod_cgi</a></code></li><li><code class="module"><a href="./mod/mod_imagemap.html">mod_imagemap</a></code></li><li><code class="module"><a href="./mod/mod_info.html">mod_info</a></code></li><li><code class="module"><a href="./mod/mod_mime.html">mod_mime</a></code></li><li><code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code></li><li><code class="module"><a href="./mod/mod_status.html">mod_status</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/mod_actions.html#action">Action</a></code></li><li><code class="directive"><a href="./mod/mod_mime.html#addhandler">AddHandler</a></code></li><li><code class="directive"><a href="./mod/mod_mime.html#removehandler">RemoveHandler</a></code></li><li><code class="directive"><a href="./mod/core.html#sethandler">SetHandler</a></code></li></ul></td></tr></table> + + + <p> ûҶ ġ ۾ + "ڵ鷯(handler)" Ѵ. Ϲ + Ϲ ڵ鷯 ִ. + , "óȴ(handled)".</p> + + <p>Apache 1.1 ڵ鷯 ְ Ǿ. + ڵ鷯 Ȯڳ ġ + ִ. ̴ Ǹ ̰ ڵ鷯 + ο ֱ . (<a href="mod/mod_mime.html#multipleext"> Ȯڸ </a> + )</p> + + <p>ڵ鷯 Ͽ, <code class="directive"><a href="./mod/mod_actions.html#action">Action</a></code> þ ߰ + ִ. ǥ ִ ⺻ ڵ鷯 :</p> + + <ul> + <li><strong>default-handler</strong>: + óϱ ⺻ ϴ ڵ鷯 + <code>default_handler()</code> Ͽ . + (core)</li> + + <li><strong>send-as-is</strong>: HTTP ִ + ״ . (<code class="module"><a href="./mod/mod_asis.html">mod_asis</a></code>)</li> + + <li><strong>cgi-script</strong>: CGI óѴ. + (<code class="module"><a href="./mod/mod_cgi.html">mod_cgi</a></code>)</li> + + <li><strong>imap-file</strong>: imagemap Ģ Ϸ + óѴ. (<code class="module"><a href="./mod/mod_imagemap.html">mod_imagemap</a></code>)</li> + + <li><strong>server-info</strong>: + ˷ش. (<code class="module"><a href="./mod/mod_info.html">mod_info</a></code>)</li> + + <li><strong>server-status</strong>: ¸ Ѵ. + (<code class="module"><a href="./mod/mod_status.html">mod_status</a></code>)</li> + + <li><strong>type-map</strong>: + type map óѴ. + (<code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code>)</li> + </ul> + </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="examples" id="examples"></a></h2> + + + <h3><a name="example1" id="example1">CGI ũƮ Ͽ ϱ</a></h3> + + + <p> þ Ȯڰ <code>html</code> + û <code>footer.pl</code> CGI ũƮ .</p> + + <div class="example"><p><code> + Action add-footer /cgi-bin/footer.pl<br /> + AddHandler add-footer .html + </code></p></div> + + <p>CGI ũƮ + (<code>PATH_TRANSLATED</code> ȯ溯 Īϴ) + û .</p> + + + <h3><a name="example2" id="example2">HTTP ϴ </a></h3> + + + <p> þ HTTP ϴ Ͽ + <code>send-as-is</code> ڵ鷯 Ѵ. + <code>/web/htdocs/asis/</code> 丮 ȿ ִ + Ȯڿ <code>send-as-is</code> ڵ鷯 + óѴ.</p> + + <div class="example"><p><code> + <Directory /web/htdocs/asis><br /> + SetHandler send-as-is<br /> + </Directory> + </code></p></div> + + + </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="programmer" id="programmer">αӸ </a></h2> + + + <p>ڵ鷯 ϱ + <a href="developer/API.html">Apache API</a> ߰Ǿ. + Ư <code>request_rec</code> ü ο ʵ尡 + ߰Ǿ:</p> + + <div class="example"><p><code> + char *handler + </code></p></div> + + <p> ڵ鷯 Ϸ, û + <code>invoke_handler</code> ܰ + <code>r->handler</code> ڵ鷯 ̸ ֱ⸸ + ϸ ȴ. ڵ鷯 content type ڵ鷯 ̸ + ϰ Ǿ. ų ʿ + ڵ鷯 ̸ ʰ, ܾ ̿ + ȣ ϴ Ϲ̴. ڵ鷯 ̸ + media type ġ ʴ´.</p> + </div></div> +<div class="bottomlang"> +<p><span> : </span><a href="./en/handler.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="./es/handler.html" hreflang="es" rel="alternate" title="Español"> es </a> | +<a href="./fr/handler.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="./ja/handler.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="./ko/handler.html" title="Korean"> ko </a> | +<a href="./tr/handler.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a> | +<a href="./zh-cn/handler.html" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p> +</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">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed 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 Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div> +<script type="text/javascript"><!--//--><![CDATA[//><!-- +var comments_shortname = 'httpd'; +var comments_identifier = 'http://httpd.apache.org/docs/2.4/handler.html'; +(function(w, d) { + if (w.location.hostname.toLowerCase() == "httpd.apache.org") { + d.write('<div id="comments_thread"><\/div>'); + var s = d.createElement('script'); + s.type = 'text/javascript'; + s.async = true; + s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; + (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); + } + else { + d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); + } +})(window, document); +//--><!]]></script></div><div id="footer"> +<p class="apache">Copyright 2023 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="menu"><a href="./mod/"></a> | <a href="./mod/directives.html">þ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="./glossary.html"></a> | <a href="./sitemap.html">Ʈ</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- +if (typeof(prettyPrint) !== 'undefined') { + prettyPrint(); +} +//--><!]]></script> +</body></html>
\ No newline at end of file diff --git a/docs/manual/handler.html.tr.utf8 b/docs/manual/handler.html.tr.utf8 new file mode 100644 index 0000000..bcab625 --- /dev/null +++ b/docs/manual/handler.html.tr.utf8 @@ -0,0 +1,179 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="tr" xml:lang="tr"><head> +<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> +<!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Apache Eylemcilerinin Kullanımı - Apache HTTP Sunucusu Sürüm 2.4</title> +<link href="./style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="./style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="./style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="./style/css/prettify.css" /> +<script src="./style/scripts/prettify.min.js" type="text/javascript"> +</script> + +<link href="./images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="./mod/">Modüller</a> | <a href="./mod/directives.html">Yönergeler</a> | <a href="http://wiki.apache.org/httpd/FAQ">SSS</a> | <a href="./glossary.html">Terimler</a> | <a href="./sitemap.html">Site Haritası</a></p> +<p class="apache">Apache HTTP Sunucusu Sürüm 2.4</p> +<img alt="" src="./images/feather.png" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="./images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Sunucusu</a> > <a href="http://httpd.apache.org/docs/">Belgeleme</a> > <a href="./">Sürüm 2.4</a></div><div id="page-content"><div id="preamble"><h1>Apache Eylemcilerinin Kullanımı</h1> +<div class="toplang"> +<p><span>Mevcut Diller: </span><a href="./en/handler.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="./es/handler.html" hreflang="es" rel="alternate" title="Español"> es </a> | +<a href="./fr/handler.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="./ja/handler.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="./ko/handler.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="./tr/handler.html" title="Türkçe"> tr </a> | +<a href="./zh-cn/handler.html" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p> +</div> + + <p>Bu belgede Apache Eylemcilerinin kullanımı açıklanmıştır.</p> + </div> +<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><ul id="toc"><li><img alt="" src="./images/down.gif" /> <a href="#definition">Eylemci Nedir?</a></li> +<li><img alt="" src="./images/down.gif" /> <a href="#examples">Örnekler</a></li> +<li><img alt="" src="./images/down.gif" /> <a href="#programmer">Yazılım Geliştirenler İçin</a></li> +</ul><h3>Ayrıca bakınız:</h3><ul class="seealso"><li><a href="#comments_section">Yorumlar</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="definition" id="definition">Eylemci Nedir?</a></h2> + + <table class="related"><tr><th>İlgili Modüller</th><th>İlgili Yönergeler</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_actions.html">mod_actions</a></code></li><li><code class="module"><a href="./mod/mod_asis.html">mod_asis</a></code></li><li><code class="module"><a href="./mod/mod_cgi.html">mod_cgi</a></code></li><li><code class="module"><a href="./mod/mod_imagemap.html">mod_imagemap</a></code></li><li><code class="module"><a href="./mod/mod_info.html">mod_info</a></code></li><li><code class="module"><a href="./mod/mod_mime.html">mod_mime</a></code></li><li><code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code></li><li><code class="module"><a href="./mod/mod_status.html">mod_status</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/mod_actions.html#action">Action</a></code></li><li><code class="directive"><a href="./mod/mod_mime.html#addhandler">AddHandler</a></code></li><li><code class="directive"><a href="./mod/mod_mime.html#removehandler">RemoveHandler</a></code></li><li><code class="directive"><a href="./mod/core.html#sethandler">SetHandler</a></code></li></ul></td></tr></table> + + + <p>Bir <em>eylemci</em> bir dosya çağrıldığında uygulanacak eylemin Apache + dahilindeki gösterimidir. Genellikle dosyaların kendi türüne bağlı + olarak örtük eylemcileri vardır. Normalde tüm dosyalar basitçe sunucu + tarafından sunulurlar, fakat bazı dosya türleri normalden farklı şekilde + ele alınırlar.</p> + + <p>Eylemciler, dosya türünden bağımsız olarak dosyanın bulunduğu yere veya + dosya ismi uzantısına göre de yapılandırılabilirler. Gerek, zarif bir + çözüm oluşuyla gerekse, hem dosya türünü hem de bir dosya ile ilişkili + bir eylemciyi mümkün kılması sebebiyle bunun getirisi daha yüksektir. + (Ayrıca, <a href="mod/mod_mime.html#multipleext">çok uzantılı + dosyalara</a> da bakınız.)</p> + + <p>Eylemciler sunucu içinde derlenebileceği gibi bir modül olarak ya da + <code class="directive"><a href="./mod/mod_actions.html#action">Action</a></code> yönergesi ile de + sunucuya dahil edilebilirler. Standart dağıtımda bulunan yerleşik + eylemciler şunlardır:</p> + + <ul> + <li><strong>default-handler</strong>: Dosyayı, öntanımlı olarak durağan + içeriği işlemekte kullanılan <code>default_handler()</code> işlevini + kullanarak gönderir. (<code class="module"><a href="./mod/core.html">core</a></code>)</li> + + <li><strong>send-as-is</strong>: Dosyayı HTTP başlıklarıyla olduğu gibi + gönderir. (<code class="module"><a href="./mod/mod_asis.html">mod_asis</a></code>)</li> + + <li><strong>cgi-script</strong>: Dosyayı bir CGI betiği olarak ele alır. + (<code class="module"><a href="./mod/mod_cgi.html">mod_cgi</a></code>)</li> + + <li><strong>imap-file</strong>: Dosyayı bir resim eşleme kuralları + dosyası olarak çözümler. (<code class="module"><a href="./mod/mod_imagemap.html">mod_imagemap</a></code>)</li> + + <li><strong>server-info</strong>: Sunucunun yapılandırma bilgisini + döndürür. (<code class="module"><a href="./mod/mod_info.html">mod_info</a></code>)</li> + + <li><strong>server-status</strong>: Sunucunun durum raporunu döndürür. + (<code class="module"><a href="./mod/mod_status.html">mod_status</a></code>)</li> + + <li><strong>type-map</strong>: Dosyayı içerik uzlaşımı için bir tür + eşlem dosyası olarak çözümler. (<code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code>)</li> + </ul> + </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="examples" id="examples">Örnekler</a></h2> + + + <h3><a name="example1" id="example1">Bir CGI betiği kullanarak durağan içeriğin değiştirilmesi</a></h3> + + + <p>Aşağıdaki yönergeler sayesinde, <code>html</code> uzantılı dosyalar + için yapılan istekler <code>footer.pl</code> CGI betiğininin + çalıştırılmasına sebep olacaktır.</p> + + <pre class="prettyprint lang-config">Action add-footer /cgi-bin/footer.pl +AddHandler add-footer .html</pre> + + + <p>Bu yapılandırmayla, istenen belgenin özgün haliyle mi (yeri + <code>PATH_TRANSLATED</code> ortam değişkenindedir) yoksa istenen + değişiklikler veya eklemeler yapıldıktan sonra mı gönderileceğinden + CGI betiği sorumlu olacaktır.</p> + + + <h3><a name="example2" id="example2">HTTP başlıklı dosyalar</a></h3> + + + <p>Aşağıdaki yönergeler kendi HTTP başlıklarını içeren dosyalar için + kullanılan <code>send-as-is</code> eylemcisini etkinleştirmek amacıyla + kullanılmıştır. <code>/siteler/htdocs/asis/</code> dizinindeki tüm + dosyalar dosya ismi uzantılarına bakılmaksızın <code>send-as-is</code> + eylemcisi tarafından işleme sokulacaktır.</p> + + <pre class="prettyprint lang-config"><Directory "/web/htdocs/asis"> + SetHandler send-as-is +</Directory></pre> + + + + </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="programmer" id="programmer">Yazılım Geliştirenler İçin</a></h2> + + + <p>Eylemci özellikleri gerçeklenirken kullanılmak üzere <a href="developer/API.html">Apache API</a>’ye bir ekleme yapılmıştır. + Özellikle de, <code>request_rec</code> yapısına yeni bir kayıt + eklenmiştir:</p> + + <pre class="prettyprint lang-c">char *handler</pre> + + + <p>Modülünüzün bir eylemciyi devreye sokmasını isterseniz, tek yapacağınız + isteğin <code>invoke_handler</code> aşamasının hemen öncesinde + <code>r->handler</code> alanına eylemcinin ismini atamak olacaktır. + Eylemciler daha önce de bahsedildiği gibi bir içerik türü yerine bir + eylemci ismi kullanılarak gerçeklenirler. Çok gerekli olmamakla + birlikte, eylemciler için kullanılan adlandırma uzlaşımları gereğince, + ismi oluşturan sözcükler, ortam türü isim alanını ihlal etmemek amacıyla + bölü imleri ile değil tire imleri ile ayrılırlar.</p> + </div></div> +<div class="bottomlang"> +<p><span>Mevcut Diller: </span><a href="./en/handler.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="./es/handler.html" hreflang="es" rel="alternate" title="Español"> es </a> | +<a href="./fr/handler.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="./ja/handler.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="./ko/handler.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="./tr/handler.html" title="Türkçe"> tr </a> | +<a href="./zh-cn/handler.html" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p> +</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">Yorumlar</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed 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 Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div> +<script type="text/javascript"><!--//--><![CDATA[//><!-- +var comments_shortname = 'httpd'; +var comments_identifier = 'http://httpd.apache.org/docs/2.4/handler.html'; +(function(w, d) { + if (w.location.hostname.toLowerCase() == "httpd.apache.org") { + d.write('<div id="comments_thread"><\/div>'); + var s = d.createElement('script'); + s.type = 'text/javascript'; + s.async = true; + s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; + (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); + } + else { + d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); + } +})(window, document); +//--><!]]></script></div><div id="footer"> +<p class="apache">Copyright 2023 The Apache Software Foundation.<br /><a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> altında lisanslıdır.</p> +<p class="menu"><a href="./mod/">Modüller</a> | <a href="./mod/directives.html">Yönergeler</a> | <a href="http://wiki.apache.org/httpd/FAQ">SSS</a> | <a href="./glossary.html">Terimler</a> | <a href="./sitemap.html">Site Haritası</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- +if (typeof(prettyPrint) !== 'undefined') { + prettyPrint(); +} +//--><!]]></script> +</body></html>
\ No newline at end of file diff --git a/docs/manual/handler.html.zh-cn.utf8 b/docs/manual/handler.html.zh-cn.utf8 new file mode 100644 index 0000000..e1256bd --- /dev/null +++ b/docs/manual/handler.html.zh-cn.utf8 @@ -0,0 +1,157 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-cn" xml:lang="zh-cn"><head> +<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> +<!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> +<title>Apache 的处理器 - Apache HTTP 服务器 版本 2.4</title> +<link href="./style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> +<link href="./style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> +<link href="./style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="./style/css/prettify.css" /> +<script src="./style/scripts/prettify.min.js" type="text/javascript"> +</script> + +<link href="./images/favicon.ico" rel="shortcut icon" /></head> +<body id="manual-page"><div id="page-header"> +<p class="menu"><a href="./mod/">模块</a> | <a href="./mod/directives.html">指令</a> | <a href="http://wiki.apache.org/httpd/FAQ">常见问题</a> | <a href="./glossary.html">术语</a> | <a href="./sitemap.html">网站导航</a></p> +<p class="apache">Apache HTTP 服务器版本 2.4</p> +<img alt="" src="./images/feather.png" /></div> +<div class="up"><a href="./"><img title="<-" alt="<-" src="./images/left.gif" /></a></div> +<div id="path"> +<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP 服务器</a> > <a href="http://httpd.apache.org/docs/">文档</a> > <a href="./">版本 2.4</a></div><div id="page-content"><div id="preamble"><h1>Apache 的处理器</h1> +<div class="toplang"> +<p><span>可用语言: </span><a href="./en/handler.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="./es/handler.html" hreflang="es" rel="alternate" title="Español"> es </a> | +<a href="./fr/handler.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="./ja/handler.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="./ko/handler.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="./tr/handler.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a> | +<a href="./zh-cn/handler.html" title="Simplified Chinese"> zh-cn </a></p> +</div> +<div class="outofdate">此翻译可能过期。要了解最近的更改,请阅读英文版。</div> + + <p>本页描述 Apache 处理器的用法。</p> + </div> +<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><ul id="toc"><li><img alt="" src="./images/down.gif" /> <a href="#definition">什么是处理器</a></li> +<li><img alt="" src="./images/down.gif" /> <a href="#examples">例子</a></li> +<li><img alt="" src="./images/down.gif" /> <a href="#programmer">对程序员的说明</a></li> +</ul><h3>参见</h3><ul class="seealso"><li><a href="#comments_section">评论</a></li></ul></div> +<div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="definition" id="definition">什么是处理器</a></h2> + + <table class="related"><tr><th>相关模块</th><th>相关指令</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_actions.html">mod_actions</a></code></li><li><code class="module"><a href="./mod/mod_asis.html">mod_asis</a></code></li><li><code class="module"><a href="./mod/mod_cgi.html">mod_cgi</a></code></li><li><code class="module"><a href="./mod/mod_imagemap.html">mod_imagemap</a></code></li><li><code class="module"><a href="./mod/mod_info.html">mod_info</a></code></li><li><code class="module"><a href="./mod/mod_mime.html">mod_mime</a></code></li><li><code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code></li><li><code class="module"><a href="./mod/mod_status.html">mod_status</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/mod_actions.html#action">Action</a></code></li><li><code class="directive"><a href="./mod/mod_mime.html#addhandler">AddHandler</a></code></li><li><code class="directive"><a href="./mod/mod_mime.html#removehandler">RemoveHandler</a></code></li><li><code class="directive"><a href="./mod/core.html#sethandler">SetHandler</a></code></li></ul></td></tr></table> + + + <p>“处理器”是当文件被调用时,Apache 要执行的动作的内部表示形式。 + 一般来说,每个文件都有基于其文件类型的隐式处理器。通常的文件会被 + 服务器简单处理,但是某些文件类型会被分别“处理”。</p> + + <p>处理器也可以被基于扩展名或位置来明确配置。它们都很有用,这不仅 + 因为它是优雅的方案,而且还允许类型<strong>与</strong>处理器关联到文件 + (参见<a href="mod/mod_mime.html#multipleext">文件与多个扩展名</a>)。</p> + + <p>处理器可以编译到服务器中,或者包含在模块中,它们还可以被 <code class="directive"><a href="./mod/mod_actions.html#action">Action</a></code> 指令增加。标准发行版中内置的处理器有:</p> + + <ul> + <li><strong>default-handler</strong>: 使用 + <code>default_handler()</code> 发送文件,它是用来处理静态内容的处理器(核心)。</li> + + <li><strong>send-as-is</strong>: 直接发送,不增加 HTTP 头(<code class="module"><a href="./mod/mod_asis.html">mod_asis</a></code>)。</li> + + <li><strong>cgi-script</strong>: 按 CGI 脚本处理(<code class="module"><a href="./mod/mod_cgi.html">mod_cgi</a></code>)。</li> + + <li><strong>imap-file</strong>: 按 imagemap 规则处理(<code class="module"><a href="./mod/mod_imagemap.html">mod_imagemap</a></code>)。</li> + + <li><strong>server-info</strong>: 取得服务器配置信息(<code class="module"><a href="./mod/mod_info.html">mod_info</a></code>)。</li> + + <li><strong>server-status</strong>: 取得服务器状态报告(<code class="module"><a href="./mod/mod_status.html">mod_status</a></code>)。</li> + + <li><strong>type-map</strong>: 用于内容协商,按类型映射文件处理(<code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code>)。</li> + </ul> + </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="examples" id="examples">例子</a></h2> + + + <h3><a name="example1" id="example1">使用 CGI 脚本修改静态内容</a></h3> + + + <p>下面的指令将会使具有<code>html</code>扩展名的文件,触发 CGI 脚本<code>footer.pl</code>的执行。</p> + + <div class="example"><p><code> + Action add-footer /cgi-bin/footer.pl<br /> + AddHandler add-footer .html + </code></p></div> + + <p>于是 CGI 负责发送请求的文档(<code>PATH_TRANSLATED</code> 环境变量指向它),按照需要作出 and making + whatever modifications or additions are desired.</p> + + + <h3><a name="example2" id="example2">含有 HTTP 头的文件</a></h3> + + + <p>下面的指令会启用 + <code>send-as-is</code> 处理器,用于包含自己的 HTTP 的文件。不管什么扩展名, + 所有位于 <code>/web/htdocs/asis/</code> 目录的文件会被 + <code>send-as-is</code> 处理器处理。</p> + + <div class="example"><p><code> + <Directory /web/htdocs/asis><br /> + SetHandler send-as-is<br /> + </Directory> + </code></p></div> + + + </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> +<div class="section"> +<h2><a name="programmer" id="programmer">对程序员的说明</a></h2> + + + <p>为了实现处理器特性,增加了需要使用的 <a href="developer/API.html">Apache API</a>。 + 特别的,结构 <code>request_rec</code> 增加了新成员:</p> + + <div class="example"><p><code> + char *handler + </code></p></div> + + <p>如果你想要模块实现处理器,只需要在在处理请求,调用 <code>invoke_handler</code> + 之前,将 <code>r->handler</code> 指向处理器名称。处理器的实现与以前一样,只是用处理器名称取代了内容类型。 + 虽然不是必要,处理器的命名约定是使用破折号分割的单词,没有斜杠,从而不侵入媒体类型名称空间。</p> + </div></div> +<div class="bottomlang"> +<p><span>可用语言: </span><a href="./en/handler.html" hreflang="en" rel="alternate" title="English"> en </a> | +<a href="./es/handler.html" hreflang="es" rel="alternate" title="Español"> es </a> | +<a href="./fr/handler.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | +<a href="./ja/handler.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | +<a href="./ko/handler.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | +<a href="./tr/handler.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a> | +<a href="./zh-cn/handler.html" title="Simplified Chinese"> zh-cn </a></p> +</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">评论</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed 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 Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div> +<script type="text/javascript"><!--//--><![CDATA[//><!-- +var comments_shortname = 'httpd'; +var comments_identifier = 'http://httpd.apache.org/docs/2.4/handler.html'; +(function(w, d) { + if (w.location.hostname.toLowerCase() == "httpd.apache.org") { + d.write('<div id="comments_thread"><\/div>'); + var s = d.createElement('script'); + s.type = 'text/javascript'; + s.async = true; + s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; + (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); + } + else { + d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); + } +})(window, document); +//--><!]]></script></div><div id="footer"> +<p class="apache">Copyright 2023 The Apache Software Foundation.<br />基于 <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> 许可证.</p> +<p class="menu"><a href="./mod/">模块</a> | <a href="./mod/directives.html">指令</a> | <a href="http://wiki.apache.org/httpd/FAQ">常见问题</a> | <a href="./glossary.html">术语</a> | <a href="./sitemap.html">网站导航</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- +if (typeof(prettyPrint) !== 'undefined') { + prettyPrint(); +} +//--><!]]></script> +</body></html>
\ No newline at end of file |