You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.6 KiB

# This is a calculate template file, created for test.
# All comments in this file are ignored during the template merging.
#
# Let's delete directive from Anonymous block.
<Anonymous ~ftp>
<Limit WRITE>
!DenyAll
</Limit>
</Anonymous>
# To add some new directives in Anonymous block.
<Anonymous ~ftp>
!MaxClients
<Directory submissions/public>
<Limit READ>
DenyAll
IgnoreHidden on
</Limit>
<Limit STOR MKD XMKD XRMD>
AllowAll
IgnoreHidden on
</Limit>
</Directory>
</Anonymous>
# Let's try to change the value of AllowOverwrite directive in Directory context.
<Directory />
AllowOverwrite off
</Directory>
# We can add deleted directive again.
<Anonymous ~ftp>
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
<IfModule mod_lang.c>
LangDefault it_IT
</IfModule>
# Now, we are going to add new Anonymous block.
<Anonymous ~guest>
User guest
Group empty
AnonRequirePassword on
<Limit LOGIN>
AllowAll
</Limit>
# We want to deny write access from all except trusted host.
<Limit WRITE>
Order allow,deny
Allow from 10.0.0.
Deny from all
</Limit>
</Anonymous>
# We can delete parameters using action marks for groups of directives.
<!Anonymous ~ftp>
DisplayLogin welcome.msg
# We can write only directive key without any parameters to delete them.
# For this operation action mark is always needed.
!DisplayFirstChdir
<Limit READ DIRS>
IgnoreHidden on
</Limit>
</Anonymous>
<IfModule mod_lang.c>
UseEncoding utf8 cp1251
</IfModule>