HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/doc/proftpd-doc/contrib/mod_readme.html
<!DOCTYPE html>
<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>

<p>
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>
<h3><a name="DisplayReadme">DisplayReadme</a></h3>
<strong>Syntax:</strong> DisplayReadme <em>path|pattern</em><br>
<strong>Default:</strong> None<br>
<strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code>, <code>&lt;Anonymous&gt;</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 ProFTPD:
<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>
<font size=2><b><i>
&copy; Copyright 2011-2013 TJ Saunders<br>
 All Rights Reserved<br>
</i></b></font>
<hr>

</body>
</html>