Actions
Mod access » History » Revision 19
« Previous |
Revision 19/28
(diff)
| Next »
zkv, 2012-08-11 10:42
Syntax errors corrected
Module mod_access¶
- Table of contents
- Module mod_access
Description¶
The access module is used to deny access to files.
Options¶
url.access-deny
Denies access to all files with any of given trailing path names.
Default value:empty
access.deny-all
Denies access to all files.
Note: access.deny-all should be used with a conditional to limit it (only from lighty 1.5x)
Usage examples¶
You might want to deny access to all files ending with a tilde (~) or .inc because of:
- Text editors often use a trailing tilde for backup files.
- And the .inc extension is often used for include files with code.
url.access-deny
url.access-deny = ( "~", ".inc")
access.deny-all usage
$PHYSICAL["path"] =~ "(~|\.inc)$" { access.deny-all = "enable" }
Directory deny access
$PHYSICAL["path"] !~ "^/srv/example.org/" { access.deny-all = "enable" }
Directory deny access (1.4x versions)
$HTTP["url"] =~ "^/libraries" { url.access-deny = ("") }
Updated by zkv over 12 years ago · 19 revisions