1 |
hollow 07/09/21 20:35:12 |
2 |
|
3 |
Added: 45_mod_ftpd.conf |
4 |
Log: |
5 |
fix #192862, cleanup |
6 |
(Portage version: 2.1.3.9) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 www-apache/mod_ftpd/files/0.14-r1/45_mod_ftpd.conf |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_ftpd/files/0.14-r1/45_mod_ftpd.conf?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_ftpd/files/0.14-r1/45_mod_ftpd.conf?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: 45_mod_ftpd.conf |
15 |
=================================================================== |
16 |
<IfDefine FTPD> |
17 |
LoadModule ftpd_module modules/mod_ftpd.so |
18 |
|
19 |
# Load any of the provider modules here (for user specific chroots) |
20 |
#LoadModule ftpd_dbm_module modules/mod_ftpd_dbm.so |
21 |
#LoadModule ftpd_dbi_module modules/mod_ftpd_dbi.so |
22 |
LoadModule ftpd_default_module modules/mod_ftpd_default.so |
23 |
#LoadModule ftpd_fail_module modules/mod_ftpd_fail.so |
24 |
|
25 |
Listen 21 |
26 |
<VirtualHost *:21> |
27 |
DocumentRoot /home/ftp |
28 |
FtpProtocol On |
29 |
FtpShowRealPermissions Off |
30 |
FtpAllowActive On |
31 |
FtpPasvMinPort 1024 |
32 |
FtpPasvMaxPort 65535 |
33 |
FtpLimitOrder default |
34 |
FtpDefaultMaxLogins 100 |
35 |
|
36 |
<Directory /home/ftp> |
37 |
Anonymous_NoUserID Off |
38 |
Anonymous_MustGiveEmail Off |
39 |
Anonymous_VerifyEmail Off |
40 |
Anonymous_LogEmail Off |
41 |
Anonymous anonymous |
42 |
AuthName ftp |
43 |
AuthType Basic |
44 |
Require valid-user |
45 |
Order allow,deny |
46 |
Allow from all |
47 |
</Directory> |
48 |
|
49 |
# only allow changing, retrieving files, and listing on the site |
50 |
<Location /> |
51 |
<LimitExcept CHDIR GET LIST> |
52 |
Deny from all |
53 |
</LimitExcept> |
54 |
</Location> |
55 |
|
56 |
# allow making directories, listing, chdir, and uploading files. |
57 |
# But don't allow retrieving files. |
58 |
<Location /upload> |
59 |
<LimitExcept LIST PUT MKCOL CHDIR> |
60 |
Deny from all |
61 |
</LimitExcept> |
62 |
</Location> |
63 |
</VirtualHost> |
64 |
</IfDefine> |
65 |
|
66 |
|
67 |
|
68 |
-- |
69 |
gentoo-commits@g.o mailing list |