LoadModule ftp_module modules/mod_ftp.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule ssl_module modules/mod_ssl.so

<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    CustomLog "logs/access.log" common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    #CustomLog "logs/access.log" combined
</IfModule>



ErrorLog "logs/error.log"


#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn
Listen 8080
#Listen 127.0.0.1:8080

<VirtualHost localhost:2121>

ServerAdmin  you@ftp.example.com
DocumentRoot "htdocs"
ErrorLog     "logs/ftp_error_log"
FTP On
FTPOptions	LISTIsNLST
#FTPBannerMessage	"FTP Apache"

#strong auth
SSLVerifyClient require
SSLCACertificateFile CA_crt.pem

SSLEngine on
SSLCertificateFile LOCALHOST_crt.pem
#SSLPassPhraseDialog	test
SSLCertificateKeyFile LOCALHOST_unpvk.pem
#SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
FTPImplicitSSL On

</VirtualHost>


