Directive Cheat Sheet

<Directory>


<Directory /www/apps >    AllowOverride None    Order Deny,Allow
   Allow From All
</Directory>
<Directory ~ /www/apps/.* > <Directory /www/apps/*/??dir >

The Directory directive is used to group a set of directives that apply specifically to a directory.




Provisions set for a specific directory are inherited by sub-directories. Therefore, if a Directory directive is used for a sub-directory there is no need to repeat any directives unless they are to change.

Allowed In: The Directory directive is allowed in server and virtual host config files. Not in .htaccess files.

NOTE: The .htaccess file is not read at startup but when a resource from that directory is requested. Therefore, the error will not happen until a request is made.

The Directory directive can not be nested and can not be contained inside a Limit or LimitExcept directive.

Access: The Default access for a directory is Allow From All so the above will not change anything.

The Directory directive takes a single argument. The path of the directory. The path may include unix style wild cards or regex. For regex use the tilde (~)


or for unix style wild cards...


CREATED 2017-07-04 11:28:26.0

00-29-FD

UPDATED 2017-07-05 12:09:49.0

<Files>


The <Files> directive is a section that applies directives to a specific or set of files.

Allowed in: The <Files> directive can be used inside .htaccess files as well as server and virtual host config files. The <Files> can also be used inside the <Directory> and <Location> directives.

CREATED 2017-07-05 12:05:20.0

00-29-FE

UPDATED 2017-07-05 12:09:50.0

Knowledge

L
I
N
K
S

DBID: db.wam

Page Server: Ithica

©2012 Leistware Data Systems

      Hello anonymous