blob: 64cc6ee523377ca3e7b83d2139de5e6d0d61da05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<IfDefine FTPD>
LoadModule ftpd_module extramodules/mod_ftpd.so
# Load any of the provider modules here (for user specific chroots)
#LoadModule ftpd_dbm_module extramodules/mod_ftpd_dbm.so
#LoadModule ftpd_dbi_module extramodules/mod_ftpd_dbi.so
LoadModule ftpd_default_module extramodules/mod_ftpd_default.so
#LoadModule ftpd_fail_module extramodules/mod_ftpd_fail.so
Listen 21
<VirtualHost *:21>
DocumentRoot /home/ftp
FtpProtocol On
FtpShowRealPermissions Off
FtpAllowActive On
FtpPasvMinPort 1024
FtpPasvMaxPort 65535
FtpLimitOrder default
FtpDefaultMaxLogins 100
<Directory /home/ftp>
Anonymous_Authoritative On
AuthAuthoritative Off
Anonymous_NoUserID Off
Anonymous_MustGiveEmail Off
Anonymous_VerifyEmail Off
Anonymous_LogEmail Off
Anonymous anonymous
AuthName ftp
AuthType Basic
Require valid-user
Order allow,deny
Allow from all
</Directory>
# only allow changing, retrieving files, and listing on the site
<Location />
<LimitExcept CHDIR GET LIST>
Deny from all
</LimitExcept>
</Location>
# allow making directories, listing, chdir, and uploading files.
# But don't allow retrieving files.
<Location /upload>
<LimitExcept LIST PUT MKCOL CHDIR>
Deny from all
</LimitExcept>
</Location>
</VirtualHost>
</IfDefine>
|