From 249b60176b8c1b7e1dd59b47c276a84f21a31910 Mon Sep 17 00:00:00 2001 From: Richard Bowen Date: Sat, 15 Jun 2002 02:34:29 +0000 Subject: [PATCH] Added examples to all mod_include directives. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95683 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_include.html.en | 42 ++++++++++++++++++++++++++++- docs/manual/mod/mod_include.xml | 40 +++++++++++++++++++++++++++ 2 files changed, 81 insertions(+), 1 deletion(-) diff --git a/docs/manual/mod/mod_include.html.en b/docs/manual/mod/mod_include.html.en index 8fe5a2f983..987998b22d 100644 --- a/docs/manual/mod/mod_include.html.en +++ b/docs/manual/mod/mod_include.html.en @@ -2,7 +2,7 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX This file is generated from xml source: DO NOT EDIT XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - -->mod_include- Apache HTTP Server
[APACHE DOCUMENTATION]

Apache HTTP Server Version 2.0

Apache Module mod_include

Description:Server-parsed html documents (Server Side Includes)
Status:Base
Module Identifier:include_module

Summary

+ -->mod_include- Apache HTTP Server
[APACHE DOCUMENTATION]

Apache HTTP Server Version 2.0

Apache Module mod_include

Description:Server-parsed html documents (Server Side Includes)
Status:Base
Module Identifier:include_module

Summary

This module provides a filter which will process files before they are sent to the client. The processing is @@ -528,6 +528,11 @@

This directive changes the string that mod_include looks for to mark the end of an include element.

+

Example

+ + SSIEndTag "%>" +
+

See also


SSIErrorMsg Directive

Description: Error message displayed when there is an SSI error
Syntax:SSIErrorMsg message
Default:SSIErrorMsg "[an error occurred while processing this directive]"
Context:server config, virtual host, directory, .htaccess
Override:All
Status:Base
Module:mod_include
Compatibility:Available in version 2.0.30 and later.

The SSIErrorMsg directive changes the error message displayed @@ -539,6 +544,11 @@

This directive has the same effect as the <!--#config errmsg=message --> element.

+

Example

+ + SSIErrorMsg "<!-- Error -->" +
+

SSIStartTag Directive

Description: String that starts an include element
Syntax:Changes the string that mod_include looks for to start an include element
Default:SSIStartTag "<!--"
Context:server config, virtual host
Status:Base
Module:mod_include
Compatibility:Available in version 2.0.30 and later.
@@ -549,6 +559,21 @@ include element

Example

+ + SSIStartTag "<%" +
+ +

The example given above, in conjunction with a matching + SSIEndTag, will + allow you to use SSI directives as shown in the example + below:

+ +

SSI directives with alternate start and end tags

+ + <%#printenv %> +
+

See also


SSITimeFormat Directive

Description: Configures the format in which date strings are displayed
Syntax:SSITimeFormat formatstring
Default:SSITimeFormat "%A, %d-%b-%Y %H:%M:%S %Z"
Context:server config, virtual host, directory, .htaccess
Override:All
Status:Base
Module:mod_include
Compatibility:Available in version 2.0.30 and later.

This directive changes the format in which date strings are displayed @@ -557,11 +582,26 @@ displayedThis directive has the same effect as the <!--#config timefmt=formatstring --> element.

+ +

Example

+ + SSITimeFormat "%R, %B %d, %Y" +
+ +

The above directive would cause times to be displayed in the + format "22:26, June 14, 2002".

+

SSIUndefinedEcho Directive

Description: String displayed when an unset variable is echoed
Syntax:SSIUndefinedEcho tag
Default:SSIUndefinedEcho "<!-- undef -->"
Context:server config, virtual host
Status:Base
Module:mod_include
Compatibility:Available in version 2.0.34 and later.

This directive changes the string that mod_include displays when a variable is not set and "echoed".

+ +

Example

+ + SSIUndefinedEcho "[ No Value ]" +
+

XBitHack Directive

Description: Parse SSI directives in files with the execute bit set
Syntax:XBitHack on|off|full
Default:XBitHack off
Context:server config, virtual host, directory, .htaccess
Override:Options
Status:Base
Module:mod_include

The XBitHack directives controls the parsing of ordinary diff --git a/docs/manual/mod/mod_include.xml b/docs/manual/mod/mod_include.xml index f41cb84a3a..72922729da 100644 --- a/docs/manual/mod/mod_include.xml +++ b/docs/manual/mod/mod_include.xml @@ -568,6 +568,11 @@

This directive changes the string that mod_include looks for to mark the end of an include element.

+ + Example + SSIEndTag "%>" + + SSIStartTag @@ -586,6 +591,12 @@ an unset variable is echoed

This directive changes the string that mod_include displays when a variable is not set and "echoed".

+ + + Example + SSIUndefinedEcho "[ No Value ]" + +
@@ -614,6 +625,11 @@ an unset variable is echoed

This directive has the same effect as the <!--#config errmsg=message --> element.

+ + Example + SSIErrorMsg "<!-- Error -->" + + @@ -638,6 +654,21 @@ include element output of a file each processing different commands (possibly at different times).

+ + Example + SSIStartTag "<%" + + +

The example given above, in conjunction with a matching + SSIEndTag, will + allow you to use SSI directives as shown in the example + below:

+ + + SSI directives with alternate start and end tags + <%#printenv %> + + SSIEndTag @@ -664,6 +695,15 @@ displayed

This directive has the same effect as the <!--#config timefmt=formatstring --> element.

+ + + Example + SSITimeFormat "%R, %B %d, %Y" + + +

The above directive would cause times to be displayed in the + format "22:26, June 14, 2002".

+ -- 2.50.1