Debian Codegraph @

doc/contrib/mod_tls_memcache.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>ProFTPD module mod_tls_memcache</title>
5 </head>
6
7 <body bgcolor=white>
8
9 <hr>
10 <center>
11 <h2><b>ProFTPD module <code>mod_tls_memcache</code></b></h2>
12 </center>
13 <hr>
14
15 <p>
16 The <code>mod_tls_memcache</code> submodule is contained in the
17 <code>mod_tls_memcache.c</code> file, and is not compiled by default.
18 Installation instructions are discussed <a href="#Installation">here</a>.
19
20 <p>
21 This submodule a memcached-based implementation of an external SSL session
22 cache for use by the <code>mod_tls</code> module's
23 <a href="mod_tls.html#TLSSessionCache"><code>TLSSessionCache</code></a>
24 directive. The module also implements a memcached-based implementation of an
25 external OCSP response cache for the
26 <a href="mod_tls.html#TLSStaplingCache"><code>TLSStaplingCache</code></a>
27 directive.
28
29 <p>
30 This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/).
31
32 <p>
33 This product includes cryptographic software written by Eric Young ([email protected]).
34
35 <h2>Author</h2>
36 <p>
37 Please contact TJ Saunders &lt;tj <i>at</i> castaglia.org&gt; with any
38 questions, concerns, or suggestions regarding this module.
39
40 <p>
41 The <code>mod_tls_memcache</code> module supports the &quot;memcache&quot;
42 string for the <em>type</em> parameter of the
43 <a href="mod_tls.html#TLSSessionCache"><code>TLSSessionCache</code></a>
44 configuration directive. The <em>info</em> parameter for
45 <code>mod_tls_memcache</code> can be empty/blank, indicating a native binary
46 encoding of the cached data), <i>or</i> it can be "/json", indicating that
47 the cached data will be encoded using JSON. This means the
48 <code>TLSSessionCache</code> setting will look like:
49 <pre>
50 # Use binary encoding for cached data
51 TLSSessionCache memcache:
52 </pre>
53 or:
54 <pre>
55 # Use JSON encoding for cached data
56 TLSSessionCache memcache:/json
57 </pre>
58 If memcache support has not been enabled in your proftpd, this configuration
59 <b>cannot</b> be used.
60
61 <p>
62 The <code>mod_tls_memcache</code> module also supports the &quot;memcache&quot;
63 string for the <em>type</em> parameter of the
64 <a href="mod_tls.html#TLSStaplingCache"><code>TLStaplingCache</code></a>
65 configuration directive, <i>e.g.</i>:
66 <pre>
67 TLSStaplingCache memcache:
68 </pre>
69
70 <p>
71 <b>Examples</b><br>
72
73 <p>
74 <pre>
75 &lt;IfModule mod_memcache.c&gt;
76 MemcacheEngine on
77 MemcacheServers <i>memcache-servers</i>
78 &lt;/IfModule&gt;
79
80 &lt;IfModule mod_tls.c&gt;
81 ...
82
83 &lt;IfModule mod_tls_memcache.c&gt;
84 # Store the data formatted as JSON
85 TLSSessionCache memcache:/json
86 TLSStaplingCache memcache:
87 &lt;/IfModule&gt;
88 &lt;/IfModule&gt;
89 </pre>
90
91 <p>
92 <b>Logging</b><br>
93 The <code>mod_tls_memcache</code> module supports <a href="../howto/Tracing.html">trace logging</a>, via the module-specific log channels:
94 <ul>
95 <li>tls.memcache
96 </ul>
97 Thus for trace logging, to aid in debugging, you would use the following in
98 your <code>proftpd.conf</code>:
99 <pre>
100 TraceLog /path/to/ftpd/trace.log
101 Trace tls.memcache:20
102 </pre>
103 This trace logging can generate large files; it is intended for debugging use
104 only, and should be removed from any production configuration.
105
106 <p>
107 <hr>
108 <h2><a name="Installation">Installation</a></h2>
109 The <code>mod_tls_memcache</code> module is distributed with the ProFTPD
110 source code. Simply follow the normal steps for using third-party modules
111 in ProFTPD, being sure to include the <code>mod_tls</code> module (on which
112 <code>mod_tls_memcache</code> depends), <b>and</b> enabling memcache
113 support:
114 <pre>
115 $ ./configure --enable-memcache --with-modules=mod_tls:mod_tls_memcache
116 $ make
117 $ make install
118 </pre>
119
120 <p>
121 Alternatively, if your <code>proftpd</code> was compiled with DSO support, you
122 can use the <code>prxs</code> tool to build <code>mod_tls_memcache</code> as
123 a shared module:
124 <pre>
125 $ prxs -c -i -d mod_tls_memcache.c
126 </pre>
127
128 <p>
129 <hr>
130 <font size=2><b><i>
131 &copy; Copyright 2011-2015 TJ Saunders<br>
132 All Rights Reserved<br>
133 </i></b></font>
134 <hr>
135
136 </body>
137 </html>