Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 99187481e0d85e197c0374a801467dbc > files > 9

apache2-mod_sleep-2.0.44_2.1-2mdk.ppc.rpm

<html>
<head>
<title>
Snert . Com - Software - mod_sleep/2.1 for Apache 2.0
</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="keywords" content="Apache 2.0 module mod_sleep request sleep pause wait delay">
<meta name="description" content="An Apache 2.0 module that sleeps a fixed length of time
for each request.">
<script language="JavaScript" type="text/javascript" src="./mailto.js"></script>
<link rel="stylesheet" type="text/css" href="./style.css">
</head>

<body background="Img/bg.gif" bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000080" alink="#ff00ff">

<!-- MARGINS -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
	<td rowspan="2" width="120">&nbsp;</td>
	<td width="250"><img alt="Snert . Com" src="Img/sun.gif" width="105" height="103"></td>
	<td align="left">
		<span class="title">mod_sleep/2.1</span>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span class="plain">from</span>&nbsp;&nbsp;
		<span class="snert">Snert . Com</span>
	</td>
	<td rowspan="2" valign="top" align="right" width="60">&nbsp;</td>
</tr><tr>
	<td colspan="2">
<!-- PAGE BODY -->

<h2 align="center">Rest for the wicked.</h2>

<p align="center">
<a href="http://www.snert.com/">Welcome</a>
- <a href="http://www.snert.com/Software/index.html">Software</a>
</p>

<a name="Description"></a>
<h3>Description</h3>

<p align="justify">
This module simply sleeps a fixed length of time every request. The sleep time
can be configured globally, or per &lt;VirtualHost&gt;, &lt;Directory&gt;,
or &lt;Location&gt;.
This module serves more as an example than providing any really useful function,
though someone did ask for it - sort of.
</p>

<a name="Configuration"></a>
<h3>Configuration</h3>
<p>
The commands below can be added to the general Apache configuration file,
<code>httpd.conf</code>.
</p>

<dl>
<a name="SleepTime"></a>
<dt><span class="syntax">SleepTime <span class="param">duration</span></span></dt>
<dd>Context: server,  &lt;VirtualHost&gt;, &lt;Directory&gt;, &lt;Location&gt;
<p align="justify">
The <span class="param">duration</span> is a number followed by an optional
suffix <!-- s, m, h, d, or w for seconds, minutes, hours, days, or weeks
respectively. --> s, m, or h for seconds, minutes, or hours
respectively. When no suffix is given the default is seconds.
</p>
</dd>
</dl>


<a name="Installation"></a>
<h3>Installation</h3>
<ol>
<li><p>
Download either:
</p>
<ul>
<li><a href="http://www.snert.com/Software/download/mod_sleep100.tgz">mod_sleep100.tgz</a> for <b>Apache 1.3</b></li>
<li><a href="http://www.snert.com/Software/download/mod_sleep201.tgz">mod_sleep201.tgz</a> for <b>Apache 2.0</b></li>
</ul>
<p>
and unpack.
</p></li>

<li><p>Next, to build this module as DSO library for Apache, just type:
<blockquote>
<pre>
cd (path to)/mod_sleep-2.1
make -f Makefile.dso install
</pre>
</blockquote>
</p>

<p>
To build as a static module into <b>Apache 2.0</b>:
</p>
<blockquote>
<pre>
cd (path to)/apache_2.0.43
mkdir -p modules/com/snert
mv (path to)/mod_sleep-2.1 modules/com/snert/sleep
./buildconf
./configure \
    --enable-sleep \
    ... (your other configuration options) ...
make install
</pre>
</blockquote>

<p>
To build as a static module into <b>Apache 1.3</b>:
</p>
<blockquote>
<pre>
cd (path to)/apache_1.3.27
./configure \
    --add-module=(absoulte path to)/mod_sleep-1.0/mod_sleep.c \
    --disable-shared=sleep \
    ... (your other configuration options) ...
make install
</pre>
</blockquote>



<a name="HttpdConf"></a>
<li><p align="justify">The following can be added to the global server configuration
or any &lt;VirtualHost&gt;, &lt;Directory&gt;, &lt;Location&gt; block
within <code>httpd.conf</code> in order for mod_sleep to function:

<blockquote>
<pre>&lt;IfModule mod_sleep.c&gt;
  SleepTime 20s
&lt;/IfModule&gt;
</pre>
</blockquote>
</li>

<li><p>
Restart the web server:
</p>
<blockquote>
<pre>
apachectl restart
</pre>
</blockquote>
</li>
</ol>

<a name="License"></a>
<h3>License</h3>
<p align="justify">
This source distribution is made freely available and there is no charge
for its use, provided you retain this notice, disclaimers, author's
copyright, and credits.
</p>

<a name="Disclaimer"></a>
<h3>Disclaimer</h3>
<p align="justify">
THIS SOFTWARE IS PROVIDE "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO WAY SHALL THE
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
</p>

<a name="Support"></a>
<h3>Support</h3>
<p>
Support is only provided for the author's original source distribution.
Free support is limited, based on the author's availability, though
enhancements requests and problem reports are welcome.
</p>

<p>
The is now a mailing list for announcements, discussion, and community
support of my Apache modules:
</p>

<blockquote>
To <a href="javascript:modulesRequest('unsubscribe')">unsubscribe</a>,
send an email with the subject "unsubscribe" to &lt;modules-request at snert dot com&gt;
</blockquote>

<blockquote>
To <a href="javascript:modulesRequest('subscribe')">subscribe</a>,
send an email with the subject "subscribe" to &lt;modules-request at snert dot com&gt;
</blockquote>

<blockquote>
To <a href="javascript:modules()">submit</a> a message to the mailing list,
just send an email to &lt;modules at snert dot com&gt;
</blockquote>

<br>


<p align="center">
<a href="http://www.snert.com/">Welcome</a>
- <a href="http://www.snert.com/Software/index.html">Software</a>
</p>

<!-- copyright -->
<p class="copyright" align="center">
<nobr>Copyright 2001, 2002 by
<a href="javascript:mailto('achowe at snert dot com')">
Anthony C Howe</a></nobr>
<nobr>All rights reserved.</nobr>
</p>
<!--end copyright-->

<center>
<font size="1">
<!--#include virtual="/WIL/counter.pl/Software/mod_sleep/version1.cnt" -->
sheep since 8 June 2001</font>
</center>

<!-- END PAGE BODY -->

	</td>
</tr>
</table>

<!-- END MARGINS -->

</body>
</html>