From: pcs Date: Fri, 18 Apr 1997 22:13:50 +0000 (+0000) Subject: Provide information on enabling SSI files. Document how to enable X-Git-Tag: APACHE_1_2b9~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6862a49c8aec27bbc89271db526af21c000166a;p=apache Provide information on enabling SSI files. Document how to enable SSI using a handler name, and relegate the magic mime types to back-compat. status. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@77935 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_include.html b/docs/manual/mod/mod_include.html index 93c7fb0b2f..291684a062 100644 --- a/docs/manual/mod/mod_include.html +++ b/docs/manual/mod/mod_include.html @@ -10,15 +10,38 @@ This module is contained in the mod_include.c file, and is compiled in by default. It provides for server-parsed html -documents, known as SPML documents. Any document with mime type -text/x-server-parsed-html or -text/x-server-parsed-html3 will be parsed by this module, -with the resulting output given the mime type text/html. -Several directives beyond the original NCSA SPML definition have been +documents. Several directives beyond the original NCSA definition have been included in Apache 1.2 - these are flagged below with the phrase "Apache 1.2 and above". Of particular significance are the new flow control directives documented at the bottom. +

Enabling Server-Side Includes

+ +Any document with handler of "server-parsed" will be parsed by this +module, if the Includes option is set. If documents +containing server-side include directives are given the extension +.shtml, the following directives will make Apache parse them and +assign the resulting document the mime type of text/html: + +
+AddType text/html .shtml
+AddHandler server-parsed .shtml
+
+ +The following directive must be given for the directories containing +the shtml files (typically in a <Directory> section, +but this directive is also valid .htaccess files if AllowOverride +Options is set): + +
+Options +Includes
+
+ +For backwards compatibility, documents with mime type +text/x-server-parsed-html or +text/x-server-parsed-html3 will also be parsed +(and the resulting output given the mime type text/html). +

Basic Elements

The document is parsed as an HTML document, with special commands embedded