Commit 79038dff authored by Richard Bowen's avatar Richard Bowen
Browse files

Clarify DirectoryMatch example. (bz 53483)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1673489 13f79535-47bb-0310-9956-ffa450edef68
parent 584e3b0c
Loading
Loading
Loading
Loading
+4 −4
Changes for docs/manual/mod/core.xml: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -858,13 +858,13 @@ the contents of file-system directories matching a regular expression.</descript
    <glossary ref="regex">regular expression</glossary>.  For example:</p>

    <highlight language="config">
&lt;DirectoryMatch "^/www/(.+/)?[0-9]{3}"&gt;
&lt;DirectoryMatch "^/www/(.+/)?[0-9]{3}/"&gt;
    # ...
&lt;/DirectoryMatch&gt;
</highlight>

    <p>would match directories in <code>/www/</code> that consisted of three
    numbers.</p>
    <p>matches directories in <code>/www/</code> (or any subdirectory thereof)
    that consist of three numbers.</p>

   <note><title>Compatability</title>
      Prior to 2.3.9, this directive implicitly applied to sub-directories
@@ -889,7 +889,7 @@ the contents of file-system directories matching a regular expression.</descript

<highlight language="config">
&lt;DirectoryMatch ^/var/www/combined/(?&lt;sitename&gt;[^/]+)&gt;
    require ldap-group cn=%{env:MATCH_SITENAME},ou=combined,o=Example
    Require ldap-group cn=%{env:MATCH_SITENAME},ou=combined,o=Example
&lt;/DirectoryMatch&gt;
</highlight>
</usage>