From: Rich Bowen Date: Fri, 25 Mar 2016 15:35:24 +0000 (+0000) Subject: Fix formatting, highlighting of examples. X-Git-Tag: 2.5.0-alpha~1831 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9fd5e050aaaeaaa4bb45d98d12dd02e963d9c6b1;p=apache Fix formatting, highlighting of examples. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1736592 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/core.html.en b/docs/manual/mod/core.html.en index 28e1511c2c..dcd55f50eb 100644 --- a/docs/manual/mod/core.html.en +++ b/docs/manual/mod/core.html.en @@ -1374,12 +1374,12 @@ in case of an error whether the parameter is an URL, a path or a message is performed before any expression is parsed. Examples:

-
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}}

Additionally, the special value default can be used diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml index ce9b85a106..54c3f35d18 100644 --- a/docs/manual/mod/core.xml +++ b/docs/manual/mod/core.xml @@ -1329,12 +1329,12 @@ in case of an error before any expression is parsed. Examples:

-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}}

Additionally, the special value default can be used diff --git a/docs/manual/mod/mod_headers.html.en b/docs/manual/mod/mod_headers.html.en index c5438cbce0..a1c7546ac1 100644 --- a/docs/manual/mod/mod_headers.html.en +++ b/docs/manual/mod/mod_headers.html.en @@ -426,10 +426,9 @@ available in 2.4.10 and later

The directive is applied if and only if expression evaluates to true. Details of expression syntax and evaluation are documented in the ap_expr documentation. -

- # This delays the evaluation of the condition clause compared to <If> - Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path.php$#" -

+
# This delays the evaluation of the condition clause compared to <If>
+Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path.php$#"
+
diff --git a/docs/manual/mod/mod_headers.xml b/docs/manual/mod/mod_headers.xml index 1eebd61af6..476d94098d 100644 --- a/docs/manual/mod/mod_headers.xml +++ b/docs/manual/mod/mod_headers.xml @@ -541,10 +541,10 @@ available in 2.4.10 and later
The directive is applied if and only if expression evaluates to true. Details of expression syntax and evaluation are documented in the ap_expr documentation. - - # This delays the evaluation of the condition clause compared to <If> - Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path.php$#" - + +# This delays the evaluation of the condition clause compared to <If> +Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path.php$#" +