You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2026/05/01 14:01:00 UTC

svn commit: r1933656 - in httpd/httpd/branches/2.4.x/docs/manual: . mod rewrite

Author: rbowen
Date: Fri May  1 14:01:00 2026
New Revision: 1933656

Log:
Add per-directory context glossary entry; link key rewrite docs references to it

Modified:
   httpd/httpd/branches/2.4.x/docs/manual/glossary.xml
   httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml
   httpd/httpd/branches/2.4.x/docs/manual/rewrite/flags.xml
   httpd/httpd/branches/2.4.x/docs/manual/rewrite/index.xml
   httpd/httpd/branches/2.4.x/docs/manual/rewrite/intro.xml
   httpd/httpd/branches/2.4.x/docs/manual/rewrite/tech.xml

Modified: httpd/httpd/branches/2.4.x/docs/manual/glossary.xml
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/glossary.xml	Fri May  1 14:00:57 2026	(r1933655)
+++ httpd/httpd/branches/2.4.x/docs/manual/glossary.xml	Fri May  1 14:01:00 2026	(r1933656)
@@ -333,6 +333,19 @@
       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>
 

Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml	Fri May  1 14:00:57 2026	(r1933655)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml	Fri May  1 14:01:00 2026	(r1933656)
@@ -1101,7 +1101,8 @@ RewriteRule  "^/$"                 "/hom
       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
@@ -1127,7 +1128,7 @@ RewriteRule  "^/$"                 "/hom
 </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"

Modified: httpd/httpd/branches/2.4.x/docs/manual/rewrite/flags.xml
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/rewrite/flags.xml	Fri May  1 14:00:57 2026	(r1933655)
+++ httpd/httpd/branches/2.4.x/docs/manual/rewrite/flags.xml	Fri May  1 14:01:00 2026	(r1933656)
@@ -58,7 +58,7 @@ long form, so that you remember what eac
 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>
 

Modified: httpd/httpd/branches/2.4.x/docs/manual/rewrite/index.xml
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/rewrite/index.xml	Fri May  1 14:00:57 2026	(r1933655)
+++ httpd/httpd/branches/2.4.x/docs/manual/rewrite/index.xml	Fri May  1 14:01:00 2026	(r1933656)
@@ -45,7 +45,8 @@
       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

Modified: httpd/httpd/branches/2.4.x/docs/manual/rewrite/intro.xml
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/rewrite/intro.xml	Fri May  1 14:00:57 2026	(r1933655)
+++ httpd/httpd/branches/2.4.x/docs/manual/rewrite/intro.xml	Fri May  1 14:01:00 2026	(r1933656)
@@ -382,7 +382,7 @@ recommended. It is possible, however, to
 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

Modified: httpd/httpd/branches/2.4.x/docs/manual/rewrite/tech.xml
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/rewrite/tech.xml	Fri May  1 14:00:57 2026	(r1933655)
+++ httpd/httpd/branches/2.4.x/docs/manual/rewrite/tech.xml	Fri May  1 14:01:00 2026	(r1933656)
@@ -73,7 +73,7 @@ and URL matching.</p>
     <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