Project

General

Profile

Actions

Mod access » History » Revision 7

« Previous | Revision 7/28 (diff) | Next »
Anonymous, 2007-05-06 18:49


{{{
#!rst ======
Access ======

------------------
Module: mod_access
------------------

.. meta::
:keywords: lighttpd, trailing path access control

.. contents:: Table of Contents

Description ===========

The access module is used to deny access to files with given trailing path names.

Options =======

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

Default: empty
Example: ::
url.access-deny = ( "~", ".inc")
will deny access to all files ended with a tilde () or .inc
such as example
or example.inc. Text editors often use a trailing tilde for
backup files. And the .inc extension is often used
for include files with code.

access.deny-all
Denies access to all files. It should be used with a conditional to limit it: ::

$PHYSICAL["path"] !~ "^/srv/example.org/" {
access.deny-all = "enable"
}
$PHYSICAL["path"] =~ "(~|\.inc)$" {
access.deny-all = "enable"
}

gives an error:
lighttpderror comp_key PHYSICAL["path"]2007-05-06 20:39:57: (configfile.c.827) source: /etc/lighttpd/lighttpd.conf line: 59 pos: 3 parser failed somehow near here: {
failed!

on lighttpd-1.4.13 (ssl)

}}}

Updated by Anonymous almost 17 years ago · 7 revisions