Project

General

Profile

Mod access » History » Revision 12

Revision 11 (moo, 2007-07-07 15:28) → Revision 12/28 (moo, 2007-07-07 15:29)

[[TracNav(DocsToc))]] 
 [[TracNav(DocsToc))] 
 {{{ 
 #!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 (only from lighty 1.5x): :: 

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

   directory deny access (1.4x): :: 

     $HTTP["url"] =~ "^/libraries" { 
       url.access-deny = ("") 
     } 

 }}}