"Fossies" - the Fresh Open Source Software Archive

Member "mod_ftp-0.9.6/docs/conf/extra/ftpd.conf" (23 Sep 2009, 6830 Bytes) of package /linux/www/apache_httpd_modules/old/mod_ftp-0.9.6-beta.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Generic config files source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #########################################################################
    2 # Sample configuration file for the FTP protocol module.
    3 #########################################################################
    4 
    5 #@@LoadFtpModules@@
    6 
    7 #########################################################################
    8 # Define the formats for the command log and transfer log
    9 #########################################################################
   10 #
   11 <IfModule mod_log_config.c>
   12 #
   13 # The command log has the format "user [x.x.x.x] command"
   14 # For example: "anonymous [127.0.0.1] CWD /incoming"
   15 #
   16 LogFormat    "%u [%a] %r" command_log_fmt
   17 
   18 #
   19 # The transfer log
   20 #
   21 LogFormat    "%{%b %e %H:%M:%S %Y}t %T %a %B %U %M %F %d %W %u %S %Z %Y" transfer_log_fmt
   22 #             1                     2  3  4  5  6  7  8  9  10 11 12 13
   23 #
   24 # What this actually means:
   25 # 1 current time in the form DDD MMM dd hh:mm:ss YYYY
   26 # 2 transfer time in seconds (could do milliseconds, but wu-ftp uses seconds)
   27 # 3 remote host name
   28 # 4 file size in bytes
   29 # 5 name of file
   30 # 6 transfer type (a=ascii b=binary)
   31 # 7 special action flags (concatenated as needed)
   32 #                        C - file was compressed
   33 #                        U - file was uncompressed
   34 #                        T - file was tarred
   35 #                        _ - no action taken
   36 # 8 file was sent to user (o=outgoing i=incoming)
   37 # 9 accessed anonymously (r=real a=anonymous, g=guest)
   38 # 10 username
   39 # 11 service name ('ftp', other)
   40 # 12 authentication method (bitmask) (0=none 1=rfc931 auth)
   41 # 13 authenticated user id (if available, '*' otherwise)
   42 #
   43 </IfModule>
   44 
   45 #########################################################################
   46 # Basic setup
   47 #########################################################################
   48 
   49 # Tell Apache which port it should listen to.
   50 Listen @@FTPPort@@ ftp
   51 AcceptFilter ftp none
   52 
   53 # On Apache 2.0, comment out the above, and uncomment the line below,
   54 # The Listen's protocol argument and AcceptFilter directive are both
   55 # new to Apache 2.2
   56 #
   57 #Listen @@FTPPort@@
   58 
   59 # Uncomment the next line if your file system does not support UTF-8.
   60 # FTPOptions              NoUTF8Feature
   61 
   62 # Uncomment these lines for SSL support.  Also see
   63 # directives in the VirtualHost context.
   64 #
   65 # SSLPassPhraseDialog     builtin
   66 # SSLSessionCache         "dbm:@exp_runtimedir@/ssl_scache"
   67 # SSLSessionCache         "shmcb:@exp_runtimedir@/ssl_scache(512000)"
   68 # SSLSessionCacheTimeout  300
   69 # SSLMutex                "file:@exp_runtimedir@/ssl_mutex"
   70 
   71 # Setup the FTP virtualhost
   72 <VirtualHost _default_:@@FTPPort@@>
   73 
   74 # Setup the ServerAdmin and DocumentRoot
   75 ServerAdmin  you@ftp.example.com
   76 DocumentRoot "@exp_ftpdocsdir@"
   77 
   78 # Tell Apache we want to serve FTP on this VirtualHost
   79 FTP On
   80 
   81 #########################################################################
   82 # Access Control
   83 #########################################################################
   84 
   85 # For the purposes of logging in, authentication is check within Apache
   86 # on the root of the file system.  This means that if you want to restrict
   87 # logins to the FTP server, you will need to configure Authentication for
   88 # <Directory "@exp_ftpdocsdir@">.  See below for examples.
   89 
   90 # File based authentication.
   91 # Must use htpasswd to create the authentication file.
   92 #
   93 #<Directory "@exp_ftpdocsdir@">
   94 #    AuthType basic
   95 #    AuthUserFile "@exp_sysconfdir@/htpasswd.users"
   96 #    AuthName "FTP Authentication"
   97 #    require valid-user
   98 #</Directory>
   99 
  100 #
  101 # Anonymous ftp access.
  102 #
  103 #<Directory "@exp_ftpdocsdir@">
  104 #    AuthName "Use 'anonymous' and email address for guest entry"
  105 #    AuthType basic
  106 #    AuthBasicProvider anon
  107 #
  108 #    Anonymous anonymous guest
  109 #    Anonymous_MustGiveEmail on
  110 #    Anonymous_LogEmail on
  111 #    
  112 #    # More anonymous options that are not necessarily needed.
  113 #    Anonymous_VerifyEmail off
  114 #    Anonymous_NoUserId off
  115 #    # Anonymous_Authoritative off
  116 #
  117 #    # Require that the user is valid
  118 #    require valid-user
  119 #
  120 #</Directory>
  121 
  122 #
  123 # Deny all users from a protected directory.
  124 # 
  125 #<Directory "@exp_ftpdocsdir@/protected">
  126 #    deny from all
  127 #</Directory>
  128 
  129 #########################################################################
  130 # Enabling write commands.
  131 #########################################################################
  132 #
  133 # Only allow write access to /incoming
  134 # <Directory "@exp_ftpdocsdir@">
  135 #     <Limit MKD RMD STOR DELE RNFR>
  136 #         Order deny,allow
  137 #         Deny from all
  138 #     </Limit>
  139 # </Directory>
  140 #
  141 # <Directory "@exp_ftpdocsdir@/incoming">
  142 #     <LimitExcept MKD RMD STOR DELE RNFR>
  143 #         Order deny,allow
  144 #         Allow from all
  145 #     </LimitExcept>
  146 # </Directory>
  147 #
  148 
  149 #########################################################################
  150 # Basic FTP directives
  151 ##########################################################################
  152 
  153 # The FTPUmask directive tells the server what permissions to give a
  154 # file when it is created.  The default is 0022.
  155 # FTPUmask             022
  156 
  157 # The FTPTimeoutLogin directive sets the amount of time a user has
  158 # to send a username to the server.  If the username is not sent in
  159 # this amount of time, the user is disconnected.
  160 # FTPTimeoutLogin      120
  161 
  162 # The FTPTimeoutIdle directive sets the amount of time allowed between
  163 # commands sent by the client.  If no commands are sent in this amount
  164 # of time, the user is disconnected.
  165 # FTPTimeoutIdle       600
  166 
  167 # The FTPTimeoutData directive sets the timeout on data transfers. If
  168 # a no data is sent to the client in this amount of time, the data
  169 # connection is closed.
  170 # FTPTimeoutData       300
  171 
  172 # The maximum number of login attempts before the connection is closed.
  173 # FTPMaxLoginAttempts    3
  174 
  175 #########################################################################
  176 # Logging
  177 #########################################################################
  178 
  179 # Setup the error_log for this virtualhost.
  180 ErrorLog     "@rel_logfiledir@/ftp_error_log"
  181 
  182 # Log the commands of users logged in anonymously.
  183 # SetEnvIf remote_user anonymous do_command_log
  184 # CustomLog "@rel_logfiledir@/ftp_command_log" command_log_fmt env=do_command_log
  185 #
  186 # Log the command of all users
  187 # CustomLog "@rel_logfiledir@/ftp_command_log" command_log_fmt
  188 
  189 # The transfer log.
  190 #
  191 # CustomLog "@rel_logfiledir@/ftp_transfer_log" transfer_log_fmt env=do_transfer_log
  192 
  193 #########################################################################
  194 # SSL Support
  195 #########################################################################
  196 
  197 #
  198 # Adding SSL support to the FTP module is similar to adding support for
  199 # SSL to the HTTP module.
  200 
  201 # SSLEngine on
  202 # SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
  203 # SSLCertificateFile "@exp_sysconfdir@/server.crt"
  204 # SSLCertificateKeyFile "@exp_sysconfdir@/server.key"
  205 
  206 #
  207 # Should clients be forced to connect securely?
  208 # FTPImplicitSSL On
  209 
  210 </VirtualHost>