Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /usr/share/doc/proftpd-doc/howto/ drwxr-xr-x |
Viewing file: Select action/file-type: ProFTPD: Redis
What is Redis?
How Can Redis Be Useful for ProFTPD?
Enabling Redis Support for ProFTPD
The
There are other modules which make use of Redis support when available, such as
$ ./configure --enable-redis \ --with-modules=...:mod_tls_redis:... \ --with-includes=/path/to/hiredis/include \ --with-libraries=/path/to/hiredis/lib
Configuring <IfModule mod_redis.c> # Enable mod_redis RedisEngine on # Tell mod_redis where to log its messages RedisLog /path/to/proftpd/redis.log # Tell mod_redis where to find the Redis server RedisServer 192.168.0.10:6379 </IfModule>If you wish to see more detailed logging, at least while you are setting up your Redis servers for ProFTPD, you can enable trace logging for the redis trace channel using e.g.:
TraceLog /path/to/proftpd/trace.log Trace DEFAULT:10 redis:20
Using Redis for Shared Storage
Currently, only two modules can take advantage of Redis support:
First, let us examine <IfModule mod_ban.c> BanEngine on # ...other mod_ban directives... # Tell mod_ban to store its ban lists using Redis BanCache redis </IfModule>With this, mod_ban will use Redis (as well as shared memory) for
reading/writing its ban lists. And this, in turn, means that other
proftpd servers' mod_ban modules can see those bans,
and reject the badly behaved clients across the pool/cluster.
The
To use Redis for SSL/TLS session caching, then, you use the <IfModule mod_tls.c> TLSEngine on # ...other mod_tls directives... <IfModule mod_tls_redis.c> # Tell mod_tls to cache sessions using Redis TLSSessionCache redis: </IfModule> </IfModule>That's it. The mod_tls module now knows to give the SSL/TLS
session data to mod_tls_redis , and mod_tls_redis
knows how to talk to the Redis server using mod_redis .
Frequently Asked Questions
Question: Can I use Why not? Many HTTP transfers are for dynamically generated pages; the cost of generating each page is expensive, and the generated content may not change that frequently (relative to the rate of requests). FTP transfers, by contrast, are for static files; FTP servers do not (usually) dynamically generate the bytes of the files being downloaded. The cost of reading files from disk is probably less than reading files from Redis, over the network, even a LAN. Now the above may not be true in all cases -- there may be FTP servers serving files from network-mounted filesystems (e.g. NFS, CIFS et al). And for these very specific cases, having a cache of frequently access files on closer storage such as local disk (or Redis) could make a big difference; please contact the ProFTPD Project if you find yourself in this situation, and we will see what can be done to help.
Question: Why do I see the following error when
mod_tls_redis/0.1: notice: unable to register 'redis' SSL session cache: Redis support not enabledAnswer: This message means that your proftpd server has mod_tls_redis built and
loaded, but your proftpd server was not built
with Redis support (i.e. the --enable-redis configure
option was not used when compiling proftpd ).
The above is not a fatal or worrisome error; it is merely pointing out that some of your modules want to use a feature that was not enabled.
© Copyright 2017 The ProFTPD Project All Rights Reserved |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0047 ]-- |