]> granicus.if.org Git - apache/commitdiff
Fix formatting, highlighting of examples.
authorRich Bowen <rbowen@apache.org>
Fri, 25 Mar 2016 15:35:24 +0000 (15:35 +0000)
committerRich Bowen <rbowen@apache.org>
Fri, 25 Mar 2016 15:35:24 +0000 (15:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1736592 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/core.html.en
docs/manual/mod/core.xml
docs/manual/mod/mod_headers.html.en
docs/manual/mod/mod_headers.xml

index 28e1511c2c00a7172ae2154d4082b0d7eaa1f26d..dcd55f50eba42b6b3decfaa906c6407a572a37dc 100644 (file)
@@ -1374,12 +1374,12 @@ in case of an error</td></tr>
     whether the parameter is an URL, a path or a message is performed
     before any expression is parsed. Examples:</p>
 
-    <pre class="prettyprint lang-config">ErrorDocument 500 http://foo.example.com/cgi-bin/tester
-ErrorDocument 404 /cgi-bin/bad_urls.pl
+    <pre class="prettyprint lang-config">ErrorDocument 500 http://example.com/cgi-bin/server-error.cgi
+ErrorDocument 404 /errors/bad_urls.php
 ErrorDocument 401 /subscription_info.html
-ErrorDocument 403 "Sorry can't allow you access today"
+ErrorDocument 403 "Sorry, can't allow you access today"
 ErrorDocument 403 Forbidden!
-ErrorDocument 403 /cgi-bin/forbidden.pl?referrer=%{escape:%{HTTP_REFERER}}</pre>
+ErrorDocument 403 /errors/forbidden.py?referrer=%{escape:%{HTTP_REFERER}}</pre>
 
 
     <p>Additionally, the special value <code>default</code> can be used
index ce9b85a10663c2cb79b603a6cb05ca739f37d0d7..54c3f35d18be51a76701012afa364774617b45d7 100644 (file)
@@ -1329,12 +1329,12 @@ in case of an error</description>
     before any expression is parsed. Examples:</p>
 
     <highlight language="config">
-ErrorDocument 500 http://foo.example.com/cgi-bin/tester
-ErrorDocument 404 /cgi-bin/bad_urls.pl
+ErrorDocument 500 http://example.com/cgi-bin/server-error.cgi
+ErrorDocument 404 /errors/bad_urls.php
 ErrorDocument 401 /subscription_info.html
-ErrorDocument 403 "Sorry can't allow you access today"
+ErrorDocument 403 "Sorry, can't allow you access today"
 ErrorDocument 403 Forbidden!
-ErrorDocument 403 /cgi-bin/forbidden.pl?referrer=%{escape:%{HTTP_REFERER}}
+ErrorDocument 403 /errors/forbidden.py?referrer=%{escape:%{HTTP_REFERER}}
     </highlight>
 
     <p>Additionally, the special value <code>default</code> can be used
index c5438cbce0d295a46a477a6f7c76701f8516d2c2..a1c7546ac1a3a50dff2c73dffbf5a43d60ae9ef9 100644 (file)
@@ -426,10 +426,9 @@ available in 2.4.10 and later</td></tr>
     <dd>The directive is applied if and only if <var>expression</var>
         evaluates to true. Details of expression syntax and evaluation are
         documented in the <a href="../expr.html">ap_expr</a> documentation.
-        <div class="example"><p><code>
-         # This delays the evaluation of the condition clause compared to &lt;If&gt;
-         Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path.php$#"
-        </code></p></div>   
+        <pre class="prettyprint lang-config"># This delays the evaluation of the condition clause compared to &lt;If&gt;
+Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path.php$#"</pre>
+   
         </dd>
     </dl>
 
index 1eebd61af6a4ac8a5a7cb41ae6287b9464b5bbf6..476d94098d3b074083f1cc4b5fe77beead9999b4 100644 (file)
@@ -541,10 +541,10 @@ available in 2.4.10 and later</compatibility>
     <dd>The directive is applied if and only if <var>expression</var>
         evaluates to true. Details of expression syntax and evaluation are
         documented in the <a href="../expr.html">ap_expr</a> documentation.
-        <example>
-         # This delays the evaluation of the condition clause compared to &lt;If&gt;
-         Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path.php$#"
-        </example>   
+        <highlight language="config">
+# This delays the evaluation of the condition clause compared to &lt;If&gt;
+Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path.php$#"
+        </highlight>   
         </dd>
     </dl>