1<?xml version="1.0" encoding="KOI8-R"?> 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="ru" xml:lang="ru"><head><!-- 4 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 5 This file is generated from xml source: DO NOT EDIT 6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 7 --> 8<title>������������� ������������ � Apache - HTTP ������ Apache</title> 9<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> 10<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> 11<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" /> 12<script src="/style/scripts/prettify.js" type="text/javascript"> 13</script> 14 15<link href="/images/favicon.ico" rel="shortcut icon" /></head> 16<body id="manual-page"><div id="page-header"> 17<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> 18<p class="apache">HTTP ������ Apache ������ 2.2</p> 19<img alt="" src="/images/feather.gif" /></div> 20<div class="up"><a href="./"><img title="<-" alt="<-" src="/images/left.gif" /></a></div> 21<div id="path"> 22<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.2</a></div><div id="page-content"><div id="preamble"><h1>������������� ������������ � Apache</h1> 23<div class="toplang"> 24<p><span>��������� �����: </span><a href="/en/handler.html" hreflang="en" rel="alternate" title="English"> en </a> | 25<a href="/es/handler.html" hreflang="es" rel="alternate" title="Español"> es </a> | 26<a href="/fr/handler.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | 27<a href="/ja/handler.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | 28<a href="/ko/handler.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | 29<a href="/ru/handler.html" title="Russian"> ru </a> | 30<a href="/tr/handler.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a> | 31<a href="/zh-cn/handler.html" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p> 32</div> 33<div class="outofdate">���� ������� ����� ���� ����������. �������� 34 ���������� ������ ��� ������������ �� ����� ���������� ����������� 35 � ���������.</div> 36 37 <p>���� �������� ��������� ������������� ������������ (handlers) � Apache.</p> 38 </div> 39<div id="quickview"><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#definition">��� ����� ����������</a></li> 40<li><img alt="" src="/images/down.gif" /> <a href="#examples">�������</a></li> 41<li><img alt="" src="/images/down.gif" /> <a href="#programmer">��������� ��� �������������</a></li> 42</ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div> 43<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 44<div class="section"> 45<h2><a name="definition" id="definition">��� ����� ����������</a></h2> 46 47 <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> 48 49 50 <p>���������� �������� ���������� ���������� 51 Apache, ������� ������ ��������� ������� ��� ��������� 52 �������������� �����. ��� �������, ������� ����� ������������� 53 ���� ���������� ����������, ������� ����������� �������� 54 ������ �� ���� �����. ������ ����� ������ ������������ 55 ������������, �� ��������� ���� ������ �������������� 56 �������������� (handled) ��������.</p> 57 58 <p>� Apache 1.1 ��������� ����������� ������������ ����������� 59 ����. ���ޣ� ��������� ������ ����� ������������ 60 ������ �� ������ �� �� ����, �� � �� ���������� ������ ��� 61 �� ���������������. ��� �������������� �������� ������� 62 ��������, ��-������ ������, ��� ��� ������� ���������, � 63 ��-������, ��� ��������� ������������� � ������ ��� 64 ���, <strong>��� �</strong> ����������. (��. ����� 65 <a href="mod/mod_mime.html#multipleext">«����� � ����������� 66 ������������»</a>)</p> 67 68 <p>����������� ����� ������������ �� ���� ��� 69 ���������������� � ������ (��� ������������ � ������� 70 �������) �������, ��� ��� ����� ���� ��������� � ������� 71 ��������� <code class="directive"><a href="/mod/mod_actions.html#action">Action</a></code>. 72 � ����������� ������������ ������� ������� ��������� ���������� 73 �����������:</p> 74 75 <ul> 76 <li><strong>default-handler</strong>: �������� ����, ��������� ������� 77 <code>default_handler()</code>, ������� �������� ������������ 78 ��-��������� ��� ����������� ������. (����)</li> 79 80 <li><strong>send-as-is</strong>: �������� ����, ���������� � 81 ���� HTTP ���������, ��� ����. (<code class="module"><a href="/mod/mod_asis.html">mod_asis</a></code>)</li> 82 83 <li><strong>cgi-script</strong>: ������������ ���� ��� CGI-������. 84 (<code class="module"><a href="/mod/mod_cgi.html">mod_cgi</a></code>)</li> 85 86 <li><strong>imap-file</strong>: ������������ ���� ��� ����� ����������� 87 (imagemap). (<code class="module"><a href="/mod/mod_imagemap.html">mod_imagemap</a></code>)</li> 88 89 <li><strong>server-info</strong>: ���������� ���������������� 90 ���������� �������. (<code class="module"><a href="/mod/mod_info.html">mod_info</a></code>)</li> 91 92 <li><strong>server-status</strong>: ���������� ����� � ��������� 93 �������. (<code class="module"><a href="/mod/mod_status.html">mod_status</a></code>)</li> 94 95 <li><strong>type-map</strong>: ������������ ���� ��� ����� ����� 96 (type map). (<code class="module"><a href="/mod/mod_negotiation.html">mod_negotiation</a></code>)</li> 97 </ul> 98 </div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 99<div class="section"> 100<h2><a name="examples" id="examples">�������</a></h2> 101 102 103 <h3><a name="example1" id="example1">��������� ������������ ��������� CGI-��������</a></h3> 104 105 106 <p>��� ������������� ��������� ��������, ������ ������ ����� 107 � ����������� <code>html</code> ����� ��������� �� ���������� 108 CGI-������ <code>footer.pl</code> ��� ��������������� ��������� 109 �������������� �����.</p> 110 111 <div class="example"><p><code> 112 Action add-footer /cgi-bin/footer.pl<br /> 113 AddHandler add-footer .html 114 </code></p></div> 115 116 <p>� ���� ������� CGI-������ ������������ �� ��, ����� 117 ������� ������������ ����������� �������� (�� ������� ��������� 118 ���������� ��������� <code>PATH_TRANSLATED</code>), ������ 119 � Σ� �������������� ��� ����������� ���������.</p> 120 121 122 <h3><a name="example2" id="example2">����� � HTTP �����������</a></h3> 123 124 125 <p>��������� ��������� �������� �������� ����������� ���������� 126 <code>send-as-is</code>, ������� ������������ ��� ������, ���������� 127 ���� ����������� HTTP-���������. ��� ����� � �������� 128 <code>/web/htdocs/asis/</code> ����� �������������� ������������ 129 <code>send-as-is</code>, ���������� �� �� ����������.</p> 130 131 <div class="example"><p><code> 132 <Directory /web/htdocs/asis><br /> 133 SetHandler send-as-is<br /> 134 </Directory> 135 </code></p></div> 136 137 138 </div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 139<div class="section"> 140<h2><a name="programmer" id="programmer">��������� ��� �������������</a></h2> 141 142 143 <p>��� ���� ����� ����� ���� ������������ �����������, � 144 <a href="developer/API.html">Apache API</a> ���� ������� 145 ��������� ����������. � ���������, � ��������� <code>request_rec</code> 146 ���� ��������� ����� ����:</p> 147 148 <div class="example"><p><code> 149 char *handler 150 </code></p></div> 151 152 <p>���� �� ������ � ��ϣ� ������ ������������ ����������, 153 �� �ӣ, ��� ��� ���� �������, ��� �������� � <code>r->handler</code> 154 ��� ���������������� �����������, ���ޣ� ������� ��� ���������� 155 ����� ���, ��� ������ ������� �� ������ <code>invoke_handler</code>. 156 ����������� ����������� ����� ��� ��, ��� � ������, 157 �� ����������� ���� ����, ��� ������ ���������� ��������� 158 ��� �����������, � �� ��� ����������� (content type). 159 ���� ��� � �� �������� ������������, �� ���������� ��������� 160 ������� ���������� ������������ - ���������� ������������ 161 �����, �����̣���� ������� � �� ���������� ����� ���� - ��� 162 �������� �� ������������ � ������������� �ͣ� �����-����� (media type).</p> 163 </div></div> 164<div class="bottomlang"> 165<p><span>��������� �����: </span><a href="/en/handler.html" hreflang="en" rel="alternate" title="English"> en </a> | 166<a href="/es/handler.html" hreflang="es" rel="alternate" title="Español"> es </a> | 167<a href="/fr/handler.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | 168<a href="/ja/handler.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | 169<a href="/ko/handler.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | 170<a href="/ru/handler.html" title="Russian"> ru </a> | 171<a href="/tr/handler.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a> | 172<a href="/zh-cn/handler.html" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p> 173</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 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> 174<script type="text/javascript"><!--//--><![CDATA[//><!-- 175var comments_shortname = 'httpd'; 176var comments_identifier = 'http://httpd.apache.org/docs/2.2/handler.html'; 177(function(w, d) { 178 if (w.location.hostname.toLowerCase() == "httpd.apache.org") { 179 d.write('<div id="comments_thread"><\/div>'); 180 var s = d.createElement('script'); 181 s.type = 'text/javascript'; 182 s.async = true; 183 s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; 184 (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); 185 } 186 else { 187 d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); 188 } 189})(window, document); 190//--><!]]></script></div><div id="footer"> 191<p class="apache">Copyright 2013 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> 192<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[//><!-- 193if (typeof(prettyPrint) !== 'undefined') { 194 prettyPrint(); 195} 196//--><!]]></script> 197</body></html>