From: Daniel Gruno Date: Sat, 28 Apr 2012 07:47:24 +0000 (+0000) Subject: Insist that when we open a section in an example, we close it again. X-Git-Tag: 2.5.0-alpha~6952 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59e07eaaf230f2e2efa865de8e1ba0383a5769a1;p=thirdparty%2Fapache%2Fhttpd.git Insist that when we open a section in an example, we close it again. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331697 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml index 696d6d7a30b..1849e625d5a 100644 --- a/docs/manual/mod/core.xml +++ b/docs/manual/mod/core.xml @@ -742,7 +742,11 @@ named file-system directory, sub-directories, and their contents. expressions can also be used, with the addition of the ~ character. For example:

- <Directory ~ "^/www/.*/[0-9]{3}"> + +<Directory ~ "^/www/.*/[0-9]{3}"> + +</Directory> +

would match directories in /www/ that consisted of three numbers.

@@ -844,7 +848,11 @@ the contents of file-system directories matching a regular expression.regular expression. For example:

- <DirectoryMatch "^/www/(.+/)?[0-9]{3}"> + +<DirectoryMatch "^/www/(.+/)?[0-9]{3}"> + # ... +</DirectoryMatch> +

would match directories in /www/ that consisted of three numbers.

@@ -1653,7 +1661,11 @@ filenames can also be used, with the addition of the ~ character. For example:

- <Files ~ "\.(gif|jpe?g|png)$"> + +<Files ~ "\.(gif|jpe?g|png)$"> + #... +</Files> +

would match most common Internet graphics formats. FilesMatch is preferred, @@ -2527,7 +2539,8 @@ URLs

<Location /private1> -# ... + # ... +</Location>

In the example below, where a trailing slash is used, requests to @@ -2536,7 +2549,8 @@ URLs

<Location /private2/> -# ... + # ... +</Location> When to use <directive @@ -2566,7 +2580,11 @@ URLs</description> can also be used, with the addition of the <code>~</code> character. For example:</p> - <highlight language="config"><Location ~ "/(extra|special)/data"></highlight> + <highlight language="config"> +<Location ~ "/(extra|special)/data"> + #... +</Location> +</highlight> <p>would match URLs that contained the substring <code>/extra/data</code> or <code>/special/data</code>. The directive <directive @@ -2633,7 +2651,11 @@ matching URLs</description> it takes a <glossary ref="regex">regular expression</glossary> as an argument instead of a simple string. For example:</p> - <highlight language="config"><LocationMatch "/(extra|special)/data"></highlight> + <highlight language="config"> +<LocationMatch "/(extra|special)/data"> + # ... +</LocationMatch> +</highlight> <p>would match URLs that contained the substring <code>/extra/data</code> or <code>/special/data</code>.</p>