Project

General

Profile

Actions

Mod access » History » Revision 22

« Previous | Revision 22/28 (diff) | Next »
gstrauss, 2016-09-11 01:11


Module mod_access

Description

The access module is used to deny access to files.

Options

url.access-allow
Allow access only to files with any of given trailing path names. (since 1.4.40)
Default value:empty

url.access-deny
Denies access to all files with any of given trailing path names.
Default value:empty

Usage examples

url.access-allow


    url.access-allow = ( ".jpg", ".gif")

You might want to deny access to all files ending with a tilde (~) or .inc because of:

  1. Text editors often use a trailing tilde for backup files.
  2. 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 gstrauss about 8 years ago · 22 revisions