Actions
Mod access » History » Revision 16
« Previous |
Revision 16/28
(diff)
| Next »
zkv, 2008-11-21 20:32
Restyling to the native style
Module mod_access¶
- Table of contents
- Module mod_access
Description¶
The access module is used to deny access to files.
Options¶
Name | Description | Default value |
---|---|---|
url.access-deny | Denies access to all files with any of given trailing path names. | empty |
access.deny-all | Denies access to all files. | empty |
Note: access.deny-all should be used with a conditional to limit it (only from lighty 1.5x)
Usage examples¶
We might want to deny access to all files ended 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 about 16 years ago · 16 revisions