See: <a href="ssl/">SSL/TLS Encryption</a>
</dd>
+ <dt><a name="perdirectory" id="perdirectory">Per-directory Context</a></dt>
+ <dd>A <glossary ref="directive">directive</glossary> is in
+ per-directory context when it appears in a <directive type="section"
+ module="core">Directory</directive>, <directive type="section"
+ module="core">DirectoryMatch</directive>, <directive type="section"
+ module="core">Files</directive>, or <directive type="section"
+ module="core">FilesMatch</directive> section in the main
+ configuration files, or in a <code>.htaccess</code> file.
+ In per-directory context, directives apply only to the
+ directory (or set of files) they are associated with.<br />
+ See: <a href="sections.html">Configuration Sections</a>
+ </dd>
+
<dt><a name="plaintext" id="plaintext">Plaintext</a></dt>
<dd>The unencrypted text.</dd>
URL after the hostname and port, and before the query string (e.g. "/app1/index.html").
This is the (%-decoded) <a href="directive-dict.html#Syntax">URL-path</a>.</p></li>
- <li><p>In per-directory context (<directive module="core">Directory</directive> and .htaccess),
+ <li><p>In <glossary ref="perdirectory">per-directory context</glossary>
+ (<directive module="core">Directory</directive> and .htaccess),
the <em>Pattern</em> is matched against only a partial path, for example a request
of "/app1/index.html" may result in comparison against "app1/index.html"
or "index.html" depending on the directory-path for which the
</ul>
</note>
-<note><title>Per-directory Rewrites</title>
+<note><title><glossary ref="perdirectory">Per-directory</glossary> Rewrites</title>
<ul>
<li>The rewrite engine may be used in <a
href="../howto/htaccess.html">.htaccess</a> files and in <directive type="section"
Some flags take one or more arguments. Flags are not case sensitive.</p>
<p>Flags that alter metadata associated with the request (T=, H=, E=)
-have no effect in per-directory context, when a substitution
+have no effect in <glossary ref="perdirectory">per-directory context</glossary>, when a substitution
(other than '-') is performed during the same round of rewrite processing.
</p>
and query string portions, and may be used in per-server context
(<code>httpd.conf</code>), per-virtualhost context (<directive
type="section" module="core">VirtualHost</directive> blocks), or
- per-directory context (<code>.htaccess</code> files and <directive
+ <glossary ref="perdirectory">per-directory context</glossary>
+ (<code>.htaccess</code> files and <directive
type="section" module="core">Directory</directive> blocks). The
rewritten result can lead to further rules, internal
sub-processing, external request redirection, or proxy
inside <directive type="section" module="core">Directory</directive>
sections or <a href="../howto/htaccess.html"><code>.htaccess</code>
files</a> at the expense of some additional complexity. This technique
-is called per-directory rewrites.</p>
+is called <glossary ref="perdirectory">per-directory</glossary> rewrites.</p>
<p>The main difference from per-server rewrites is that the path
prefix of the directory containing the <code>.htaccess</code> file is
<p>In each of these cases, <module>mod_rewrite</module> rewrites the
<code>REQUEST_URI</code> either to a new URL, or to a filename.</p>
- <p>In per-directory context (i.e., within <code>.htaccess</code> files
+ <p>In <glossary ref="perdirectory">per-directory context</glossary> (i.e., within <code>.htaccess</code> files
and <code>Directory</code> blocks), these rules are being applied
after a URL has already been translated to a filename. Because of
this, the URL-path that <module>mod_rewrite</module> initially compares <directive