]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Add PATH_INFO glossary entry, link first mention in each doc
authorRich Bowen <rbowen@apache.org>
Fri, 15 May 2026 19:31:59 +0000 (19:31 +0000)
committerRich Bowen <rbowen@apache.org>
Fri, 15 May 2026 19:31:59 +0000 (19:31 +0000)
Define PATH_INFO in glossary.xml with an example
(/app/index.php/extra/path), reference to AcceptPathInfo directive,
and RFC 3875 section 4.1.5 citation.

Convert the first prose mention of PATH_INFO in 14 files to
<glossary ref="pathinfo"> links. Subsequent mentions within the same
document are left as <code> or plain text to avoid link spam.

Skipped mod_ext_filter.xml (only occurrence is inside the compound
variable name DOCUMENT_PATH_INFO) and mod_ssl.xml (inside a <pre>
block where markup links are inappropriate).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1934245 13f79535-47bb-0310-9956-ffa450edef68

15 files changed:
docs/manual/env.xml
docs/manual/expr.xml
docs/manual/glossary.xml
docs/manual/mod/core.xml
docs/manual/mod/mod_actions.xml
docs/manual/mod/mod_cgi.xml
docs/manual/mod/mod_include.xml
docs/manual/mod/mod_lua.xml
docs/manual/mod/mod_proxy.xml
docs/manual/mod/mod_proxy_fcgi.xml
docs/manual/mod/mod_proxy_scgi.xml
docs/manual/mod/mod_rewrite.xml
docs/manual/rewrite/flags.xml
docs/manual/rewrite/remapping.xml
docs/manual/upgrading.xml

index fef7930fac95d8ac1a9724073b6d488ab2463f91..2e27b4ef37b8d8176928bdde2c851c32a1350899 100644 (file)
     <section id="path-info">
         <title>PATH_INFO</title>
 
-        <p>The variable <code>PATH_INFO</code> is set to
+        <p>The variable <glossary ref="pathinfo">PATH_INFO</glossary> is set to
         the any value that appears after a matches resource
         at the end of the URL, not including any
         <code>QUERY_STRING</code>. This is best shown by
index 0479098542f808edee1a0c45974fec2803679881..6563864ec61b1729a292606c2c772f73c7d77a6c 100644 (file)
@@ -261,7 +261,7 @@ DIGIT       ::= &lt;any US-ASCII digit "0".."9"&gt;
         <td>The user name of the owner of the script.</td></tr>
     <tr><td><code>SCRIPT_GROUP</code></td>
         <td>The group name of the group of the script.</td></tr>
-    <tr><td><code>PATH_INFO</code></td>
+    <tr><td><glossary ref="pathinfo">PATH_INFO</glossary></td>
         <td>The trailing path name information, see
             <directive module="core">AcceptPathInfo</directive></td></tr>
     <tr><td><code>QUERY_STRING</code></td>
index 61d99124159dec7897728281804648caedd1140c..3d6eb4b699f7df2bcdc2a844d53ca561eaec8c2f 100644 (file)
       See: <a href="sections.html">Configuration Sections</a>
     </dd>
 
+    <dt><a name="pathinfo" id="pathinfo">PATH_INFO</a></dt>
+    <dd>The trailing path information that follows the actual filename
+      in a URL. For example, if <code>/app/index.php/extra/path</code>
+      maps to the file <code>/app/index.php</code>, then the PATH_INFO
+      is <code>/extra/path</code>. It is passed to CGI scripts, PHP,
+      and other handlers as additional context about the request. The
+      <directive module="core">AcceptPathInfo</directive> directive controls
+      whether requests with trailing path information are accepted or
+      rejected.<br />
+      See: <rfc section="4.1.5">3875</rfc>
+    </dd>
+
     <dt><a name="plaintext" id="plaintext">Plaintext</a></dt>
     <dd>The unencrypted text.</dd>
 
index 139da820f9b2dbb5915ad9eb78470dd035e757a1..6faec1dfbf444eaf9d0879f64458dc34fc3b8aa7 100644 (file)
@@ -137,7 +137,7 @@ AcceptFilter https connect
     pathname information that follows an actual filename (or
     non-existent file in an existing directory) will be accepted or
     rejected.  The trailing pathname information can be made
-    available to scripts in the <code>PATH_INFO</code> environment
+    available to scripts in the <glossary ref="pathinfo">PATH_INFO</glossary> environment
     variable.</p>
 
     <p>For example, assume the location <code>/test/</code> points to
index d9a9457ca39d85b3ef454d573d88619d65cd8174..7bf2ae72969ef90a197ca48d6fb7ddd821851310 100644 (file)
@@ -66,7 +66,7 @@ content-type</description>
     href="../handler.html">handler</a> or a <glossary
     ref="mime-type">MIME content type</glossary>. It sends the URL and
     file path of the requested document using the standard CGI
-    <code>PATH_INFO</code> and <code>PATH_TRANSLATED</code>
+    <glossary ref="pathinfo">PATH_INFO</glossary> and <code>PATH_TRANSLATED</code>
     environment variables. The handler used for the particular request
     is passed using the <code>REDIRECT_HANDLER</code> variable.</p>
 
index 1eb6add1b18f3e2e03767c623a878003fe21a2ed..9c3b8d5c90cbda2b10f433617e65e3627cbc50cf 100644 (file)
@@ -66,7 +66,7 @@
     with the following provisions:</p>
 
     <dl>
-      <dt>PATH_INFO</dt>
+      <dt><glossary ref="pathinfo">PATH_INFO</glossary></dt>
 
       <dd>This will not be available if the <directive module="core"
       >AcceptPathInfo</directive> directive is explicitly set to
index f6ef79537fbd869321d5b9e23399fc9f8171000e..09f526653ac18d5265cfbe76038493d57052eec7 100644 (file)
@@ -83,7 +83,7 @@ Options +Includes
     <title>PATH_INFO with Server Side Includes</title>
 
     <p>Files processed for server-side includes no longer accept
-    requests with <code>PATH_INFO</code> (trailing pathname information)
+    requests with <glossary ref="pathinfo">PATH_INFO</glossary> (trailing pathname information)
     by default.  You can use the <directive
     module="core">AcceptPathInfo</directive> directive to
     configure the server to accept requests with <code>PATH_INFO</code>.</p>
index 67b27648579e47c4731461a9355501aca14afae6..aecbca3ed9e1d489efca78c46f47134a7c323a53 100644 (file)
@@ -526,7 +526,7 @@ end
           <td><code>path_info</code></td>
           <td>string</td>
           <td>no</td>
-          <td>The PATH_INFO extracted from this request.</td>
+          <td>The <glossary ref="pathinfo">PATH_INFO</glossary> extracted from this request.</td>
         </tr>
         <tr>
           <td><code>port</code></td>
index 1f51a2c8949f54a1bed0a396a0354915a9b2742d..058331922eceb39d7acacdefba9cc79b766dab03 100644 (file)
@@ -1515,7 +1515,7 @@ ProxyPass "/" "balancer://hotcluster/"
 
     <p>Normally, mod_proxy will canonicalise ProxyPassed URLs.
     But this may be incompatible with some backends, particularly those
-    that make use of <var>PATH_INFO</var>.  The optional <var>nocanon</var>
+    that make use of <var><glossary ref="pathinfo">PATH_INFO</glossary></var>.  The optional <var>nocanon</var>
     keyword suppresses this and passes the URL path "raw" to the
     backend.  Note that this keyword may affect the security of your backend,
     as it removes the normal limited protection against URL-based attacks
index 0d4010cc04cd3e01dab1f207f8a13297dae2d82b..644f40329a9593430d3c512f2ce1dd20b6e95fa8 100644 (file)
@@ -173,7 +173,7 @@ ProxyPass "/myapp/" "balancer://myappcluster/"
        allows the normal mapping of URI to filename to occur in the server, and the
        local filesystem result is passed to the backend.  When FastCGI is
        configured this way, the server can calculate the most accurate
-       PATH_INFO.
+       <glossary ref="pathinfo">PATH_INFO</glossary>.
       </p>
     <example><title>Proxy via Handler</title>
       <highlight language="config">
index b24a01feb4d0fcff78de0fd51e54b945dc0d3cf1..eb8918c78e25a5baffbbe0a3814ba744755e74d2 100644 (file)
@@ -84,7 +84,7 @@ ProxyPass "/scgi-bin/" "balancer://somecluster/"
     <dl>
         <dt>proxy-scgi-pathinfo</dt>
         <dd>By default <module>mod_proxy_scgi</module> will neither create
-        nor export the <var>PATH_INFO</var> environment variable. This allows
+        nor export the <var><glossary ref="pathinfo">PATH_INFO</glossary></var> environment variable. This allows
         the backend SCGI server to correctly determine <var>SCRIPT_NAME</var>
         and <var>Script-URI</var> and be compliant with RFC 3875 section 3.3.
         If instead you need <module>mod_proxy_scgi</module> to generate
index 339483571b9968c3da00fb1f3ce9682be090f920..35f34160ce5136c288526359b84de3e31ceb786e 100644 (file)
@@ -526,7 +526,7 @@ RewriteRule "^/ex/(.*)" "${examplemap:$1}"
                  CONTEXT_PREFIX<br />
                  CONTEXT_DOCUMENT_ROOT<br />
                  IPV6<br />
-                 PATH_INFO<br />
+                 <glossary ref="pathinfo">PATH_INFO</glossary><br />
                  QUERY_STRING<br />
                  REMOTE_ADDR<br />
                  REMOTE_HOST<br />
index b952503420066b61b1b4f33b135c9bcffd0177c0..45ff22c9d7386f94364dc8f0fc438e9ac1484d3e 100644 (file)
@@ -284,7 +284,7 @@ minutes (24 hours) and is returned for all URIs.</p>
 </section>
 
 <section id="flag_dpi"><title>DPI|discardpath</title>
-<p>The DPI flag causes the PATH_INFO portion of the rewritten URL-path to be
+<p>The DPI flag causes the <glossary ref="pathinfo">PATH_INFO</glossary> portion of the rewritten URL-path to be
 discarded.</p>
 
 <p>In <glossary ref="perdirectory">per-directory context</glossary>,
index 9bd698cb228062ee65994ca84038291367422651..c9c7694c04927789bcfa8b8d2eab252e0a7cc62e 100644 (file)
@@ -701,7 +701,7 @@ RewriteRule "(.*)"            "-" [F]
   </li>
 
   <li>This solution shows the reverse of the previous ones, copying
-      path components (perhaps PATH_INFO) from the URL into the query string.
+      path components (perhaps <glossary ref="pathinfo">PATH_INFO</glossary>) from the URL into the query string.
 <highlight language="config">
 # The desired URL might be /products/kitchen-sink, and the script expects
 # /path?products=kitchen-sink.
index 07d3a9f6a1a7aef81c56da15d662d2c74faaa7a6..64fb7a819b9ab410dfe6e7edde28bb6ab18fd9b7 100644 (file)
@@ -454,7 +454,7 @@ Require ip 127.0.0.1
         </li>
 
         <li><module>mod_proxy_scgi</module>: The default setting for
-        <code>PATH_INFO</code> has changed from httpd 2.2, and
+        <glossary ref="pathinfo">PATH_INFO</glossary> has changed from httpd 2.2, and
         some web applications will no longer operate properly with
         the new <code>PATH_INFO</code> setting.  The previous setting
         can be restored by configuring the <code>proxy-scgi-pathinfo</code>