Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /usr/share/doc/proftpd-doc/contrib/ drwxr-xr-x | |
| Viewing file: Select action/file-type: ProFTPD module
|
| operator | Description |
= or == |
proftpd version is equal |
> |
proftpd version is greater than |
>= |
proftpd version is greater or equal |
< |
proftpd version is less than |
<= |
proftpd version is less or equal |
It is also possible to use regular expressions to match the ProFTPD version. To use a regular expression, the operators are:
| operator | Description |
= or == |
version has the form /regex/ |
~ |
version has the form regex |
If you wish to reverse the meaning of the operator, prefix the operator with an exclamation mark (!), e.g.:
<IfVersion != 1.3.1>
# Do not use these directives if the version is 1.3.1
</IfVersion>
If operator is omitted, it is assumed to be =.
mod_ifversion module is distributed with ProFTPD. For
including mod_ifversion as a statically linked module:
$ ./configure --with-modules=mod_ifversionTo build
mod_ifversion as a DSO module:
$ ./configure --enable-dso --with-shared=mod_ifversionThen follow the usual steps:
$ make $ make install
For those with an existing ProFTPD installation, you can use the
prxs tool to add mod_ifversion, as a DSO module, to
your existing server:
$ prxs -c -i -d mod_ifversion.c
The following examples demonstrate how the mod_ifversion can
be used.
Using a simple numeric comparison:
<IfVersion >= 1.3.1rc1>
# Only use these directives for versions greater or equal 1.3.1rc1
</IfVersion>
Using a regular expression:
<IfVersion = /^rc[[:digit:]]$/>
# Only use these directives for RC (release candidate) versions
</IfVersion>
Using a reversed regular expression (i.e. in this case, meaning "proftpd version does not match this pattern"):
<IfVersion !~ ^1.3.[012]$>
# These directives are not for those versions
</IfVersion>
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0036 ]-- |