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/03 14:03:54 UTC
svn commit: r1933768 - httpd/httpd/trunk/docs/manual/mod
Author: rbowen
Date: Sun May 3 14:03:54 2026
New Revision: 1933768
Log:
mod_alias: document Alias context restrictions for one-arg vs two-arg forms (Bug 64511)
Modified:
httpd/httpd/trunk/docs/manual/mod/mod_alias.xml
Modified: httpd/httpd/trunk/docs/manual/mod/mod_alias.xml
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_alias.xml Sun May 3 13:44:37 2026 (r1933767)
+++ httpd/httpd/trunk/docs/manual/mod/mod_alias.xml Sun May 3 14:03:54 2026 (r1933768)
@@ -212,6 +212,18 @@ Alias "/image" "/ftp/pub/image"
</Location>
</highlight>
+ <note><title>Context restrictions</title>
+ <p>The two-argument form of <directive>Alias</directive> can only
+ be used in server config or <directive module="core"
+ type="section">VirtualHost</directive>. The one-argument form,
+ where the URL path is taken from the enclosing section, can be
+ used in <directive module="core" type="section">Location</directive>,
+ <directive module="mod_proxy" type="section">Proxy</directive>,
+ and <directive module="core" type="section">If</directive>, but
+ not in <directive module="core" type="section">Directory</directive>
+ or <directive module="core" type="section">Files</directive>.</p>
+ </note>
+
</usage>
</directivesynopsis>