summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gruno <humbedooh@apache.org>2012-05-04 15:04:53 +0000
committerDaniel Gruno <humbedooh@apache.org>2012-05-04 15:04:53 +0000
commit06ab60855a06758d59efd7cff1d1ea651c62422f (patch)
tree3897873f656b90ff389f97f7bd18425dadc72f32
parentd43c4bcbfb0e0f14fa77514afa31665aa41ac4c7 (diff)
downloadhttpd-06ab60855a06758d59efd7cff1d1ea651c62422f.tar.gz
Backporting syntax highlighting (and a few typo fixes) for mod_e|f|h*.xml
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1334016 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--docs/manual/mod/mod_echo.xml2
-rw-r--r--docs/manual/mod/mod_env.xml6
-rw-r--r--docs/manual/mod/mod_example.xml14
-rw-r--r--docs/manual/mod/mod_expires.xml46
-rw-r--r--docs/manual/mod/mod_ext_filter.xml228
-rw-r--r--docs/manual/mod/mod_file_cache.xml4
-rw-r--r--docs/manual/mod/mod_filter.xml78
-rw-r--r--docs/manual/mod/mod_headers.xml49
-rw-r--r--docs/manual/mod/mod_heartbeat.xml6
-rw-r--r--docs/manual/mod/mod_heartmonitor.xml4
10 files changed, 210 insertions, 227 deletions
diff --git a/docs/manual/mod/mod_echo.xml b/docs/manual/mod/mod_echo.xml
index 46c6975772..af670949de 100644
--- a/docs/manual/mod/mod_echo.xml
+++ b/docs/manual/mod/mod_echo.xml
@@ -52,7 +52,9 @@ later.</compatibility>
disables the echo server.</p>
<example><title>Example</title>
+ <highlight language="config">
ProtocolEcho On
+ </highlight>
</example>
</usage>
diff --git a/docs/manual/mod/mod_env.xml b/docs/manual/mod/mod_env.xml
index 7a48c9061f..51d4f2eb1a 100644
--- a/docs/manual/mod/mod_env.xml
+++ b/docs/manual/mod/mod_env.xml
@@ -56,7 +56,9 @@ SSI pages</description>
<program>httpd</program> process.</p>
<example><title>Example</title>
+ <highlight language="config">
PassEnv LD_LIBRARY_PATH
+ </highlight>
</example>
</usage>
</directivesynopsis>
@@ -74,7 +76,9 @@ SSI pages</description>
HTTP Server modules, and passed on to CGI scripts and SSI pages.</p>
<example><title>Example</title>
+ <highlight language="config">
SetEnv SPECIAL_PATH /foo/bin
+ </highlight>
</example>
<note><p>The internal environment variables set by this directive are set
@@ -104,7 +108,9 @@ SSI pages</description>
on to CGI scripts and SSI pages.</p>
<example><title>Example</title>
+ <highlight language="config">
UnsetEnv LD_LIBRARY_PATH
+ </highlight>
</example>
</usage>
</directivesynopsis>
diff --git a/docs/manual/mod/mod_example.xml b/docs/manual/mod/mod_example.xml
index 94e3cd23be..36f66a52c7 100644
--- a/docs/manual/mod/mod_example.xml
+++ b/docs/manual/mod/mod_example.xml
@@ -99,18 +99,18 @@
<p>To activate the example module, include a block similar to
the following in your <code>httpd.conf</code> file:</p>
-<example>
- &lt;Location /example-info&gt;<br />
- SetHandler example-handler<br />
- &lt;/Location&gt;
-</example>
+<highlight language="config">
+&lt;Location /example-info&gt;
+ SetHandler example-handler
+&lt;/Location&gt;
+</highlight>
<p>As an alternative, you can put the following into a <a
href="core.html#accessfilename"><code>.htaccess</code></a> file
and then request the file "test.example" from that location:</p>
-<example>
+<highlight language="config">
AddHandler example-handler .example
-</example>
+</highlight>
<p>After reloading/restarting your server, you should be able
to browse to this location and see the brief display mentioned
diff --git a/docs/manual/mod/mod_expires.xml b/docs/manual/mod/mod_expires.xml
index 00edb03a73..40d488ab52 100644
--- a/docs/manual/mod/mod_expires.xml
+++ b/docs/manual/mod/mod_expires.xml
@@ -62,12 +62,10 @@ criteria</description>
<directive module="mod_expires">ExpiresByType</directive> directives
can also be defined in a more readable syntax of the form:</p>
- <example>
- ExpiresDefault "<var>base</var> [plus <var>num</var> <var>type</var>]
- [<var>num</var> <var>type</var>] ..."<br />
- ExpiresByType type/encoding "<var>base</var> [plus <var>num</var> <var>type</var>]
- [<var>num</var> <var>type</var>] ..."
- </example>
+ <highlight language="config">
+ExpiresDefault "<var>base</var> [plus <var>num</var> <var>type</var>] [<var>num</var> <var>type</var>] ..."
+ExpiresByType type/encoding "<var>base</var> [plus <var>num</var> <var>type</var>] [<var>num</var> <var>type</var>] ..."
+ </highlight>
<p>where <var>base</var> is one of:</p>
@@ -98,21 +96,19 @@ criteria</description>
make documents expire 1 month after being accessed, by
default:</p>
- <example>
- ExpiresDefault "access plus 1 month"<br />
- ExpiresDefault "access plus 4 weeks"<br />
- ExpiresDefault "access plus 30 days"
- </example>
+ <highlight language="config">
+ExpiresDefault "access plus 1 month"
+ExpiresDefault "access plus 4 weeks"
+ExpiresDefault "access plus 30 days"
+ </highlight>
<p>The expiry time can be fine-tuned by adding several
'<var>num</var> <var>type</var>' clauses:</p>
- <example>
- ExpiresByType text/html "access plus 1 month 15
- days 2 hours"<br />
- ExpiresByType image/gif "modification plus 5 hours 3
- minutes"
- </example>
+ <highlight language="config">
+ExpiresByType text/html "access plus 1 month 15 days 2 hours"
+ExpiresByType image/gif "modification plus 5 hours 3 minutes"
+ </highlight>
<p>Note that if you use a modification date based setting, the
Expires header will <strong>not</strong> be added to content
@@ -193,13 +189,15 @@ by MIME type</description>
repeatedly within a relatively short timespan).</p>
<example><title>Example:</title>
- # enable expirations<br />
- ExpiresActive On<br />
- # expire GIF images after a month in the client's cache<br />
- ExpiresByType image/gif A2592000<br />
- # HTML documents are good for a week from the<br />
- # time they were changed<br />
- ExpiresByType text/html M604800
+ <highlight language="config">
+# enable expirations
+ExpiresActive On
+# expire GIF images after a month in the client's cache
+ExpiresByType image/gif A2592000
+# HTML documents are good for a week from the
+# time they were changed
+ExpiresByType text/html M604800
+ </highlight>
</example>
<p>Note that this directive only has effect if
diff --git a/docs/manual/mod/mod_ext_filter.xml b/docs/manual/mod/mod_ext_filter.xml
index 8a1ea12377..f663e2b4d5 100644
--- a/docs/manual/mod/mod_ext_filter.xml
+++ b/docs/manual/mod/mod_ext_filter.xml
@@ -60,30 +60,25 @@ delivery to the client</description>
<section id="examples"><title>Examples</title>
<section><title>Generating HTML from some other type of response</title>
- <example>
- # mod_ext_filter directive to define a filter<br />
- # to HTML-ize text/c files using the external<br />
- # program /usr/bin/enscript, with the type of<br />
- # the result set to text/html<br />
- ExtFilterDefine c-to-html mode=output \<br />
- <indent>
- intype=text/c outtype=text/html \<br />
- cmd="/usr/bin/enscript --color -W html -Ec -o - -"<br />
- </indent>
- <br />
- &lt;Directory "/export/home/trawick/apacheinst/htdocs/c"&gt;<br />
- <indent>
- # core directive to cause the new filter to<br />
- # be run on output<br />
- SetOutputFilter c-to-html<br />
- <br />
- # mod_mime directive to set the type of .c<br />
- # files to text/c<br />
- AddType text/c .c<br />
- <br />
- </indent>
- &lt;/Directory&gt;
- </example>
+ <highlight language="config">
+# mod_ext_filter directive to define a filter
+# to HTML-ize text/c files using the external
+# program /usr/bin/enscript, with the type of
+# the result set to text/html
+ExtFilterDefine c-to-html mode=output \
+ intype=text/c outtype=text/html \
+ cmd="/usr/bin/enscript --color -W html -Ec -o - -"
+
+&lt;Directory "/export/home/trawick/apacheinst/htdocs/c"&gt;
+ # core directive to cause the new filter to
+ # be run on output
+ SetOutputFilter c-to-html
+
+ # mod_mime directive to set the type of .c
+ # files to text/c
+ AddType text/c .c
+&lt;/Directory&gt;
+ </highlight>
</section>
<section><title>Implementing a content encoding filter</title>
@@ -91,116 +86,99 @@ delivery to the client</description>
Please refer to <module>mod_deflate</module> for a practical
implementation.</p>
- <example>
- # mod_ext_filter directive to define the external filter<br />
- ExtFilterDefine gzip mode=output cmd=/bin/gzip<br />
- <br />
- &lt;Location /gzipped&gt;<br />
- <indent>
- # core directive to cause the gzip filter to be<br />
- # run on output<br />
- SetOutputFilter gzip<br />
- <br />
- # mod_header directive to add<br />
- # "Content-Encoding: gzip" header field<br />
- Header set Content-Encoding gzip<br />
- </indent>
- &lt;/Location&gt;
- </example>
+ <highlight language="config">
+# mod_ext_filter directive to define the external filter
+ExtFilterDefine gzip mode=output cmd=/bin/gzip
+
+&lt;Location /gzipped&gt;
+
+ # core directive to cause the gzip filter to be
+ # run on output
+ SetOutputFilter gzip
+
+ # mod_header directive to add
+ # "Content-Encoding: gzip" header field
+ Header set Content-Encoding gzip
+&lt;/Location&gt;
+ </highlight>
</section>
<section><title>Slowing down the server</title>
- <example>
- # mod_ext_filter directive to define a filter<br />
- # which runs everything through cat; cat doesn't<br />
- # modify anything; it just introduces extra pathlength<br />
- # and consumes more resources<br />
- ExtFilterDefine slowdown mode=output cmd=/bin/cat \<br />
- <indent>
- preservescontentlength<br />
- </indent>
- <br />
- &lt;Location /&gt;<br />
- <indent>
- # core directive to cause the slowdown filter to<br />
- # be run several times on output<br />
- #<br />
- SetOutputFilter slowdown;slowdown;slowdown<br />
- </indent>
- &lt;/Location&gt;
- </example>
+ <highlight language="config">
+# mod_ext_filter directive to define a filter
+# which runs everything through cat; cat doesn't
+# modify anything; it just introduces extra pathlength
+# and consumes more resources
+ExtFilterDefine slowdown mode=output cmd=/bin/cat \
+ preservescontentlength
+
+&lt;Location /&gt;
+ # core directive to cause the slowdown filter to
+ # be run several times on output
+ #
+ SetOutputFilter slowdown;slowdown;slowdown
+&lt;/Location&gt;
+ </highlight>
</section>
<section><title>Using sed to replace text in the response</title>
- <example>
- # mod_ext_filter directive to define a filter which<br />
- # replaces text in the response<br />
- #<br />
- ExtFilterDefine fixtext mode=output intype=text/html \<br />
- <indent>
- cmd="/bin/sed s/verdana/arial/g"<br />
- </indent>
- <br />
- &lt;Location /&gt;<br />
- <indent>
- # core directive to cause the fixtext filter to<br />
- # be run on output<br />
- SetOutputFilter fixtext<br />
- </indent>
- &lt;/Location&gt;
- </example>
+ <highlight language="config">
+# mod_ext_filter directive to define a filter which
+# replaces text in the response
+#
+ExtFilterDefine fixtext mode=output intype=text/html \
+ cmd="/bin/sed s/verdana/arial/g"
+
+&lt;Location /&gt;
+ # core directive to cause the fixtext filter to
+ # be run on output
+ SetOutputFilter fixtext
+&lt;/Location&gt;
+ </highlight>
</section>
<section><title>Tracing another filter</title>
- <example>
- # Trace the data read and written by mod_deflate<br />
- # for a particular client (IP 192.168.1.31)<br />
- # experiencing compression problems.<br />
- # This filter will trace what goes into mod_deflate.<br />
- ExtFilterDefine tracebefore \<br />
- <indent>
- cmd="/bin/tracefilter.pl /tmp/tracebefore" \<br />
- EnableEnv=trace_this_client<br />
- </indent>
- <br />
- # This filter will trace what goes after mod_deflate.<br />
- # Note that without the ftype parameter, the default<br />
- # filter type of AP_FTYPE_RESOURCE would cause the<br />
- # filter to be placed *before* mod_deflate in the filter<br />
- # chain. Giving it a numeric value slightly higher than<br />
- # AP_FTYPE_CONTENT_SET will ensure that it is placed<br />
- # after mod_deflate.<br />
- ExtFilterDefine traceafter \<br />
- <indent>
- cmd="/bin/tracefilter.pl /tmp/traceafter" \<br />
- EnableEnv=trace_this_client ftype=21<br />
- </indent>
- <br />
- &lt;Directory /usr/local/docs&gt;<br />
- <indent>
- SetEnvIf Remote_Addr 192.168.1.31 trace_this_client<br />
- SetOutputFilter tracebefore;deflate;traceafter<br />
- </indent>
- &lt;/Directory&gt;
- </example>
+ <highlight language="config">
+# Trace the data read and written by mod_deflate
+# for a particular client (IP 192.168.1.31)
+# experiencing compression problems.
+# This filter will trace what goes into mod_deflate.
+ExtFilterDefine tracebefore \
+ cmd="/bin/tracefilter.pl /tmp/tracebefore" \
+ EnableEnv=trace_this_client
+
+# This filter will trace what goes after mod_deflate.
+# Note that without the ftype parameter, the default
+# filter type of AP_FTYPE_RESOURCE would cause the
+# filter to be placed *before* mod_deflate in the filter
+# chain. Giving it a numeric value slightly higher than
+# AP_FTYPE_CONTENT_SET will ensure that it is placed
+# after mod_deflate.
+ExtFilterDefine traceafter \
+ cmd="/bin/tracefilter.pl /tmp/traceafter" \
+ EnableEnv=trace_this_client ftype=21
+
+&lt;Directory /usr/local/docs&gt;
+ SetEnvIf Remote_Addr 192.168.1.31 trace_this_client
+ SetOutputFilter tracebefore;deflate;traceafter
+&lt;/Directory&gt;
+ </highlight>
<example><title>Here is the filter which traces the data:</title>
- #!/usr/local/bin/perl -w<br />
- use strict;<br />
- <br />
- open(SAVE, "&gt;$ARGV[0]")<br />
- <indent>
- or die "can't open $ARGV[0]: $?";<br />
- </indent>
- <br />
- while (&lt;STDIN&gt;) {<br />
- <indent>
- print SAVE $_;<br />
- print $_;<br />
- </indent>
- }<br />
- <br />
- close(SAVE);
+ <highlight language="perl">
+#!/usr/local/bin/perl -w
+use strict;
+
+open(SAVE, "&gt;$ARGV[0]")
+ or die "can't open $ARGV[0]: $?";
+
+while (&lt;STDIN&gt;) {
+ print SAVE $_;
+ print $_;
+}
+
+close(SAVE);
+ </highlight>
</example>
</section>
</section> <!-- /Examples -->
@@ -326,9 +304,9 @@ delivery to the client</description>
filter is removed and the request continues without it.</dd>
</dl>
- <example><title>Example</title>
+ <highlight language="config">
ExtFilterOptions LogStderr
- </example>
+ </highlight>
<p>Messages written to the filter's standard error will be stored
in the Apache error log.</p>
diff --git a/docs/manual/mod/mod_file_cache.xml b/docs/manual/mod/mod_file_cache.xml
index d5d10c899b..aacc991655 100644
--- a/docs/manual/mod/mod_file_cache.xml
+++ b/docs/manual/mod/mod_file_cache.xml
@@ -159,7 +159,9 @@
<module>mod_rewrite</module>.</p>
<example><title>Example</title>
+ <highlight language="config">
MMapFile /usr/local/apache/htdocs/index.html
+ </highlight>
</example>
</usage>
</directivesynopsis>
@@ -188,7 +190,9 @@
<module>mod_rewrite</module>.</p>
<example><title>Example</title>
+ <highlight language="config">
CacheFile /usr/local/apache/htdocs/index.html
+ </highlight>
</example>
</usage>
</directivesynopsis>
diff --git a/docs/manual/mod/mod_filter.xml b/docs/manual/mod/mod_filter.xml
index 50d08c1e81..de1a723ef4 100644
--- a/docs/manual/mod/mod_filter.xml
+++ b/docs/manual/mod/mod_filter.xml
@@ -154,52 +154,50 @@
<dl>
<dt>Server side Includes (SSI)</dt>
<dd>A simple case of replacing <directive>AddOutputFilterByType</directive>
- <example>
- FilterDeclare SSI<br/>
- FilterProvider SSI INCLUDES "%{CONTENT_TYPE} =~ m|^text/html|"<br/>
- FilterChain SSI
- </example>
+ <highlight language="config">
+FilterDeclare SSI
+FilterProvider SSI INCLUDES "%{CONTENT_TYPE} =~ m|^text/html|"
+FilterChain SSI
+ </highlight>
</dd>
<dt>Server side Includes (SSI)</dt>
<dd>The same as the above but dispatching on handler (classic
SSI behaviour; .shtml files get processed).
- <example>
- FilterProvider SSI INCLUDES "%{HANDLER} = 'server-parsed'"<br/>
- FilterChain SSI
- </example>
+ <highlight language="config">
+FilterProvider SSI INCLUDES "%{HANDLER} = 'server-parsed'"
+FilterChain SSI
+ </highlight>
</dd>
<dt>Emulating mod_gzip with mod_deflate</dt>
<dd>Insert INFLATE filter only if "gzip" is NOT in the
Accept-Encoding header. This filter runs with ftype CONTENT_SET.
- <example>
- FilterDeclare gzip CONTENT_SET<br/>
- FilterProvider gzip inflate "%{req:Accept-Encoding} !~ /gzip/"<br/>
- FilterChain gzip
- </example>
+ <highlight language="config">
+FilterDeclare gzip CONTENT_SET
+FilterProvider gzip inflate "%{req:Accept-Encoding} !~ /gzip/"
+FilterChain gzip
+ </highlight>
</dd>
<dt>Image Downsampling</dt>
<dd>Suppose we want to downsample all web images, and have filters
for GIF, JPEG and PNG.
- <example>
- FilterProvider unpack jpeg_unpack "%{CONTENT_TYPE} = 'image/jpeg'"<br/>
- FilterProvider unpack gif_unpack "%{CONTENT_TYPE} = 'image/gif'"<br/>
- FilterProvider unpack png_unpack "%{CONTENT_TYPE} = 'image/png'"<br/>
- <br />
- FilterProvider downsample downsample_filter "%{CONTENT_TYPE} = m|^image/(jpeg|gif|png)|"<br/>
- FilterProtocol downsample "change=yes"<br/>
- <br />
- FilterProvider repack jpeg_pack "%{CONTENT_TYPE} = 'image/jpeg'"<br/>
- FilterProvider repack gif_pack "%{CONTENT_TYPE} = 'image/gif'"<br/>
- FilterProvider repack png_pack "%{CONTENT_TYPE} = 'image/png'"<br/>
- &lt;Location /image-filter&gt;<br/>
- <indent>
- FilterChain unpack downsample repack<br/>
- </indent>
- &lt;/Location&gt;
- </example>
+ <highlight language="config">
+FilterProvider unpack jpeg_unpack "%{CONTENT_TYPE} = 'image/jpeg'"
+FilterProvider unpack gif_unpack "%{CONTENT_TYPE} = 'image/gif'"
+FilterProvider unpack png_unpack "%{CONTENT_TYPE} = 'image/png'"
+
+FilterProvider downsample downsample_filter "%{CONTENT_TYPE} = m|^image/(jpeg|gif|png)|"
+FilterProtocol downsample "change=yes"
+
+FilterProvider repack jpeg_pack "%{CONTENT_TYPE} = 'image/jpeg'"
+FilterProvider repack gif_pack "%{CONTENT_TYPE} = 'image/gif'"
+FilterProvider repack png_pack "%{CONTENT_TYPE} = 'image/png'"
+&lt;Location /image-filter&gt;
+ FilterChain unpack downsample repack
+&lt;/Location&gt;
+ </highlight>
</dd>
</dl>
</section>
@@ -269,9 +267,9 @@ being moved to <module>mod_filter</module> in version 2.3.7</compatibility>
<code>text/html</code> or <code>text/plain</code> before it is sent
to the client.</p>
- <example>
+ <highlight language="config">
AddOutputFilterByType DEFLATE text/html text/plain
- </example>
+ </highlight>
<p>If you want the content to be processed by more than one filter, their
names have to be separated by semicolons. It's also possible to use one
@@ -283,14 +281,12 @@ being moved to <module>mod_filter</module> in version 2.3.7</compatibility>
<code>INCLUDES</code> filter and then by the <code>DEFLATE</code>
filter.</p>
- <example>
- &lt;Location /cgi-bin/&gt;<br />
- <indent>
- Options Includes<br />
- AddOutputFilterByType INCLUDES;DEFLATE text/html<br />
- </indent>
- &lt;/Location&gt;
- </example>
+ <highlight language="config">
+&lt;Location /cgi-bin/&gt;
+ Options Includes
+ AddOutputFilterByType INCLUDES;DEFLATE text/html
+&lt;/Location&gt;
+ </highlight>
</usage>
diff --git a/docs/manual/mod/mod_headers.xml b/docs/manual/mod/mod_headers.xml
index f40bc05a2a..c8ff3bdf3f 100644
--- a/docs/manual/mod/mod_headers.xml
+++ b/docs/manual/mod/mod_headers.xml
@@ -47,10 +47,10 @@ headers</description>
href="../sections.html#mergin">configuration sections</a>. These
two directives have a different effect if reversed:</p>
- <example>
- RequestHeader append MirrorID "mirror 12"<br />
- RequestHeader unset MirrorID
- </example>
+ <highlight language="config">
+RequestHeader append MirrorID "mirror 12"
+RequestHeader unset MirrorID
+ </highlight>
<p>This way round, the <code>MirrorID</code> header is not set. If
reversed, the MirrorID header is set to "mirror 12".</p>
@@ -84,9 +84,9 @@ headers</description>
Copy all request headers that begin with "TS" to the
response headers:
- <example>
+ <highlight language="config">
Header echo ^TS
- </example>
+ </highlight>
</li>
<li>
@@ -96,9 +96,9 @@ headers</description>
the client to intuit load on the server or in isolating
bottlenecks between the client and the server.
- <example>
+ <highlight language="config">
Header set MyHeader "%D %t"
- </example>
+ </highlight>
<p>results in this header being added to the response:</p>
@@ -110,10 +110,9 @@ headers</description>
<li>
Say hello to Joe
- <example>
- Header set MyHeader "Hello Joe. It took %D microseconds \<br />
- for Apache to serve this request."
- </example>
+ <highlight language="config">
+Header set MyHeader "Hello Joe. It took %D microseconds for Apache to serve this request."
+ </highlight>
<p>results in this header being added to the response:</p>
@@ -130,10 +129,10 @@ headers</description>
stimulus. Note that this example requires the services of the
<module>mod_setenvif</module> module.
- <example>
- SetEnvIf MyRequestHeader myvalue HAVE_MyRequestHeader<br />
- Header set MyHeader "%D %t mytext" env=HAVE_MyRequestHeader
- </example>
+ <highlight language="config">
+SetEnvIf MyRequestHeader myvalue HAVE_MyRequestHeader
+Header set MyHeader "%D %t mytext" env=HAVE_MyRequestHeader
+ </highlight>
<p>If the header <code>MyRequestHeader: myvalue</code> is present on
the HTTP request, the response will contain the following header:</p>
@@ -149,9 +148,9 @@ headers</description>
description</a>) by replacing <var>https:</var> with
<var>http:</var> in the <var>Destination</var> header:
- <example>
+ <highlight language="config">
RequestHeader edit Destination ^https: http: early
- </example>
+ </highlight>
</li>
<li>
@@ -162,11 +161,11 @@ headers</description>
<code>NO_STORE</code> environment variables all existed for the
request):
- <example>
- Header merge Cache-Control no-cache env=CGI<br />
- Header merge Cache-Control no-cache env=NO_CACHE<br />
- Header merge Cache-Control no-store env=NO_STORE
- </example>
+ <highlight language="config">
+Header merge Cache-Control no-cache env=CGI
+Header merge Cache-Control no-cache env=NO_CACHE
+Header merge Cache-Control no-store env=NO_STORE
+ </highlight>
<p>then the response would contain the following header:</p>
@@ -183,9 +182,9 @@ headers</description>
</li>
<li>
Set a test cookie if and only if the client didn't send us a cookie
- <example>
+ <highlight language="config">
Header set Set-Cookie testcookie "expr=-z %{req:Cookie}"
- </example>
+ </highlight>
</li>
</ol>
</section>
diff --git a/docs/manual/mod/mod_heartbeat.xml b/docs/manual/mod/mod_heartbeat.xml
index f81df68cf0..a2180aae4c 100644
--- a/docs/manual/mod/mod_heartbeat.xml
+++ b/docs/manual/mod/mod_heartbeat.xml
@@ -54,7 +54,7 @@ of <directive module="mod_proxy">ProxyPass</directive>.</p>
<p>
Every 1 second, this module generates a single multicast UDP
packet, containing the number of busy and idle workers. The
- packet is a simple ASCII format, similiar to GET query parameters
+ packet is a simple ASCII format, similar to GET query parameters
in HTTP.
</p>
@@ -82,9 +82,9 @@ multicast address to which <module>mod_heartbeat</module> will send
status information. This address will usually correspond to a configured
<directive module="mod_heartmonitor">HeartbeatListen</directive> on a
frontend proxy system.</p>
-<example>
+<highlight language="config">
HeartbeatAddress 239.0.0.1:27999
-</example>
+</highlight>
</usage>
</directivesynopsis>
diff --git a/docs/manual/mod/mod_heartmonitor.xml b/docs/manual/mod/mod_heartmonitor.xml
index 2870b1df12..b2577410d3 100644
--- a/docs/manual/mod/mod_heartmonitor.xml
+++ b/docs/manual/mod/mod_heartmonitor.xml
@@ -66,9 +66,9 @@ use <module>mod_slotmem_shm</module>.</p>
module="mod_heartbeat">HeartbeatAddress</directive> on an origin server.
</p>
- <example>
+ <highlight language="config">
HeartbeatListen 239.0.0.1:27999
- </example>
+ </highlight>
<p> This module is inactive until this directive is used.</p>
</usage>