Tags of level
1
Small summary
Allow to create filter on files
Syntax
FileSpec [<FileSpec filtername>]
Default
Non
Context
Configuration of the server
Compatibility
1.30 and more
Description
Tag FileSpec can create a filter and it can be applied anywhere (by exemple: Default, Group, IpRange or User).
Examples
<Default> ApplyFileSpec OnlyDataAndHome,AllowedExtensions </Default>
<FileSpec AllowedExtensions> # Only check against filenames/folder names only UseFullPath false
# we can use multiple deny/allow directives for clarity Order DenyAllow Deny ".*.exe$" Deny ".*.sh$" Allow all </FileSpec>
<FileSpec OnlyDataAndHome> # Here, we check against the full absolute path # instead of just the filename or foldername UseFullPath true
# We define the order in which paths are evaluated Order AllowDeny
# Allow any full path that starts with /data or /home Allow "^/(data|home)" Deny all </FileSpec>
|
|