Current File : //usr/share/doc/proftpd-1.3.5e/contrib/mod_readme.html |
<!-- $Id: mod_readme.html,v 1.2 2013-08-14 21:40:18 castaglia Exp $ -->
<!-- $Source: /home/proftpd-core/backup/proftp-cvsroot/proftpd/doc/contrib/mod_readme.html,v $ -->
<html>
<head>
<title>ProFTPD module mod_readme</title>
</head>
<body bgcolor=white>
<hr>
<center>
<h2><b>ProFTPD module <code>mod_readme</code></b></h2>
</center>
<hr><br>
This module is contained in the <code>mod_readme.c</code> file for
ProFTPD 1.3.<i>x</i>, and is not compiled by default. Installation
instructions are discussed <a href="#Installation">here</a>.
<p>
The most current version of <code>mod_readme</code> is distributed with the
ProFTPD source code.
<h2>Directives</h2>
<ul>
<li><a href="#DisplayReadme">DisplayReadme</a>
</ul>
<hr>
<h2><a name="DisplayReadme">DisplayReadme</a></h2>
<strong>Syntax:</strong> DisplayReadme <em>path|pattern</em><br>
<strong>Default:</strong> None<br>
<strong>Context:</strong> server config, <code><VirtualHost></code>, <code><Global></code>, <code><Anonymous></code><br>
<strong>Module:</strong> mod_readme<br>
<strong>Compatibility:</strong> 1.2.0pre8 and later
<p>
The <code>DisplayReadme</code> directive configures the server to notify
the client of the last modified date of the specified <em>path</em> or
<em>pattern</em>. These notifications happen whenever a client logs in,
or whenever the client changes directory.
<p>
For example:
<pre>
DisplayReadme README
</pre>
will result in the following being displayed to connecting client, assuming
there is a file called "README" in the current directory:
<blockquote>
Please read the file README
it was last modified on Sun Oct 17 10:36:14 2011 - 0 days ago
</blockquote>
<p>
As another example, assume there are two files named "README" and
"README.first" in the directory into which the client changed. Then using
<pre>
DisplayReadme README*
</pre>
might result in the following being sent to the client:
<blockquote>
Please read the file README
it was last modified on Tue Jan 25 04:47:48 2011 - 0 days ago
Please read the file README.first
it was last modified on Tue Jan 25 04:48:04 2011 - 0 days ago
</blockquote>
<p>
<hr>
<h2><a name="Installation">Installation</a></h2>
To install <code>mod_readme</code>, follow the usual steps for using
third-party modules in <code>proftpd</code>:
<pre>
./configure --with-modules=mod_readme ...
</pre>
To build <code>mod_readme</code> as a DSO module:
<pre>
./configure --enable-dso --with-shared=mod_readme
</pre>
Then follow the usual steps:
<pre>
make
make install
</pre>
<p>
Alternatively, if your <code>proftpd</code> was compiled with DSO support,
you can use the <code>prxs</code> tool to build <code>mod_readme</code> as
a shared module:
<pre>
prxs -c -i -d mod_readme.c
</pre>
<p>
<hr><br>
Author: <i>$Author: castaglia $</i><br>
Last Updated: <i>$Date: 2013-08-14 21:40:18 $</i><br>
<br><hr>
<font size=2><b><i>
© Copyright 2011-2013 TJ Saunders<br>
All Rights Reserved<br>
</i></b></font>
<hr><br>
</body>
</html>