home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / apache_2.2.8-win32-x86-no_ssl.msi / Data1.cab / _423845A8641559C0848A7A3693C9520F < prev    next >
Extensible Markup Language  |  2007-09-01  |  6KB  |  112 lines

  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
  4.         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  5.               This file is generated from xml source: DO NOT EDIT
  6.         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  7.       -->
  8. <title>mod_asis - Apache HTTP Server</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" />
  12. <link href="../images/favicon.ico" rel="shortcut icon" /></head>
  13. <body>
  14. <div id="page-header">
  15. <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p>
  16. <p class="apache">Apache HTTP Server Version 2.2</p>
  17. <img alt="" src="../images/feather.gif" /></div>
  18. <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
  19. <div id="path">
  20. <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.2</a> > <a href="./">Modules</a></div>
  21. <div id="page-content">
  22. <div id="preamble"><h1>Apache Module mod_asis</h1>
  23. <div class="toplang">
  24. <p><span>Available Languages: </span><a href="../en/mod/mod_asis.html" title="English"> en </a> |
  25. <a href="../ja/mod/mod_asis.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
  26. <a href="../ko/mod/mod_asis.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
  27. </div>
  28. <table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Sends files that contain their own
  29. HTTP headers</td></tr>
  30. <tr><th><a href="module-dict.html#Status">Status:</a></th><td>Base</td></tr>
  31. <tr><th><a href="module-dict.html#ModuleIdentifier">ModuleáIdentifier:</a></th><td>asis_module</td></tr>
  32. <tr><th><a href="module-dict.html#SourceFile">SourceáFile:</a></th><td>mod_asis.c</td></tr></table>
  33. <h3>Summary</h3>
  34.  
  35.     <p>This module provides the handler <code>send-as-is</code>
  36.     which causes Apache to send the document without adding most of
  37.     the usual HTTP headers.</p>
  38.  
  39.     <p>This can be used to send any kind of data from the server,
  40.     including redirects and other special HTTP responses, without
  41.     requiring a cgi-script or an nph script.</p>
  42.  
  43.     <p>For historical reasons, this module will also process any
  44.     file with the mime type <code>httpd/send-as-is</code>.</p>
  45. </div>
  46. <div id="quickview"><h3 class="directives">Directives</h3>
  47. <p>This module provides no
  48.             directives.</p>
  49. <h3>Topics</h3>
  50. <ul id="topics">
  51. <li><img alt="" src="../images/down.gif" /> <a href="#usage">Usage</a></li>
  52. </ul><h3>See also</h3>
  53. <ul class="seealso">
  54. <li><code class="module"><a href="../mod/mod_headers.html">mod_headers</a></code></li>
  55. <li><code class="module"><a href="../mod/mod_cern_meta.html">mod_cern_meta</a></code></li>
  56. <li><a href="../handler.html">Apache's Handler Use</a></li>
  57. </ul></div>
  58. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  59. <div class="section">
  60. <h2><a name="usage" id="usage">Usage</a></h2>
  61.  
  62.     <p>In the server configuration file, associate files with the
  63.     <code>send-as-is</code> handler <em>e.g.</em></p>
  64.  
  65.     <div class="example"><p><code>AddHandler send-as-is asis</code></p></div>
  66.  
  67.     <p>The contents of any file with a <code>.asis</code> extension
  68.     will then be sent by Apache to the client with almost no
  69.     changes. In particular, HTTP headers are derived from the file
  70.     itself according to <code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code> rules, so an asis
  71.     file must include valid headers, and may also use the CGI
  72.     Status: header to determine the HTTP response code.</p>
  73.  
  74.     <p>Here's an example of a file whose contents are sent <em>as
  75.     is</em> so as to tell the client that a file has
  76.     redirected.</p>
  77.  
  78.  
  79.     <div class="example"><p><code>
  80.       Status: 301 Now where did I leave that URL<br />
  81.       Location: http://xyz.abc.com/foo/bar.html<br />
  82.       Content-type: text/html<br />
  83.       <br />
  84.       <html><br />
  85.       <head><br />
  86.       <title>Lame excuses'R'us</title><br />
  87.       </head><br />
  88.       <body><br />
  89.       <h1>Fred's exceptionally wonderful page has moved to<br />
  90.       <a href="http://xyz.abc.com/foo/bar.html">Joe's</a>
  91.       site.<br />
  92.       </h1><br />
  93.       </body><br />
  94.       </html>
  95.     </code></p></div>
  96.  
  97.     <div class="note"><h3>Notes:</h3>
  98.     <p>The server always adds a <code>Date:</code> and <code>Server:</code>
  99.     header to the data returned to the client, so these should not be
  100.     included in the file. The server does <em>not</em> add a
  101.     <code>Last-Modified</code> header; it probably should.</p>
  102.     </div>
  103. </div>
  104. </div>
  105. <div class="bottomlang">
  106. <p><span>Available Languages: </span><a href="../en/mod/mod_asis.html" title="English"> en </a> |
  107. <a href="../ja/mod/mod_asis.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
  108. <a href="../ko/mod/mod_asis.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
  109. </div><div id="footer">
  110. <p class="apache">Copyright 2007 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>
  111. <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div>
  112. </body></html>