Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 0c336499d2cce64b5aa2e42184f43f9e > files > 1386

cherokee-1.2.101-1.fc14.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="en-us" />
    <meta name="ROBOTS" content="ALL" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="MSSmartTagsPreventParsing" content="true" />
    <meta name="Keywords" content="cherokee web server httpd http" />
    <meta name="Description" content="Cherokee is a flexible, very fast, lightweight Web server. It is implemented entirely in C, and has no dependencies beyond a standard C library. It is embeddable and extensible with plug-ins. It supports on-the-fly configuration by reading files or strings, TLS/SSL (via GNUTLS or OpenSSL), virtual hosts, authentication, cache friendly features, PHP, custom error management, and much more." />
    <link href="media/css/cherokee_doc.css" rel="stylesheet" type="text/css" media="all" />
  </head>
<body>
<h2 id="_a_href_index_html_index_a_8594_a_href_modules_html_modules_a_8594_a_href_modules_handlers_html_handlers_a"><a href="index.html">Index</a> &#8594; <a href="modules.html">Modules</a> &#8594; <a href="modules_handlers.html">Handlers</a></h2>
<div class="sectionbody">
</div>
<h2 id="_handler_static_content">Handler: Static Content</h2>
<div class="sectionbody">
<div class="paragraph"><p>The <strong>file</strong> handler serves files from its document root.  No more, no
less.</p></div>
<h3 id="parameters">Parameters</h3><div style="clear:left"></div>
<div class="tableblock">
<table rules="all"
width="100%"
frame="border"
cellspacing="0" cellpadding="4">
<col width="25%" />
<col width="25%" />
<col width="50%" />
<thead>
<tr>
<th align="left" valign="top">Parameters  </th>
<th align="left" valign="top">Type    </th>
<th align="left" valign="top">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left" valign="top"><p class="table"><tt>iocache</tt></p></td>
<td align="left" valign="top"><p class="table">Boolean</p></td>
<td align="left" valign="top"><p class="table">Optional. Default: <tt>Enabled</tt>.</p></td>
</tr>
</tbody>
</table>
</div>
<div class="paragraph"><p>By default it will use an internal I/O cache to improve the server
performance.
If you don&#8217;t want to use it with a directory just unset it using this
parameter.</p></div>
<div class="paragraph"><p>It is a good idea to disable to I/O cache if the content of the
directory changes often.</p></div>
<h3 id="examples">Examples</h3><div style="clear:left"></div>
<div class="paragraph"><p>Lets imagine your virtual server DocumentRoot points to /var/www.</p></div>
<div class="tableblock">
<table rules="all"
width="100%"
frame="border"
cellspacing="0" cellpadding="4">
<col width="25%" />
<col width="75%" />
<tbody>
<tr>
<td align="left" valign="top"><p class="table">Handler</p></td>
<td align="left" valign="top"><p class="table"><tt>Static Content</tt></p></td>
</tr>
<tr>
<td align="left" valign="top"><p class="table">Document Root</p></td>
<td align="left" valign="top"><p class="table">No custom Document Root will fall back to the default one defined for the virtual server.</p></td>
</tr>
<tr>
<td align="left" valign="top"><p class="table">Use I/O cache</p></td>
<td align="left" valign="top"><p class="table"><tt>Enabled</tt></p></td>
</tr>
</tbody>
</table>
</div>
<div class="imageblock">
<div class="content">
<img src="media/images/admin_handler_file.png" alt="media/images/admin_handler_file.png" />
</div>
<div class="image-title">Handler Static Content</div>
</div>
<div class="paragraph"><p>This is a simple example that will make Cherokee able of serving each
CSS file under /var/www or any subdirectory with the IO/cache setting
enabled. This would only not apply if a <tt>final</tt> rule with higher
priority specified otherwise.</p></div>
</div>
<div id="footer">
<div id="footer-text">
</div>
</div>
</body>
</html>