From ba3266faca70c86eb01c92e49621113db2dab0ce Mon Sep 17 00:00:00 2001
From: Joshua Slive .shtml
, with the following directives:
AddType text/html .shtml - AddHandler server-parsed .shtml + <FilesMatch "\.shtml[.$]"> + SetOutputFilter INCLUDES
+ </FilesMatch>
One disadvantage to this approach is that if you wanted to add SSI
diff --git a/docs/manual/howto/ssi.html.en b/docs/manual/howto/ssi.html.en
index d804733738..da17836b41 100644
--- a/docs/manual/howto/ssi.html.en
+++ b/docs/manual/howto/ssi.html.en
@@ -143,7 +143,9 @@ such as .shtml
, with the following directives:
AddType text/html .shtml - AddHandler server-parsed .shtml + <FilesMatch "\.shtml[.$]"> + SetOutputFilter INCLUDES
+ </FilesMatch>
One disadvantage to this approach is that if you wanted to add SSI diff --git a/docs/manual/misc/FAQ-F.html b/docs/manual/misc/FAQ-F.html index 7acb96e516..87c71faeae 100644 --- a/docs/manual/misc/FAQ-F.html +++ b/docs/manual/misc/FAQ-F.html @@ -31,7 +31,7 @@
- $Revision: 1.7 $ ($Date: 2000/12/02 21:39:03 $) + $Revision: 1.8 $ ($Date: 2001/02/10 23:33:36 $)
The latest version of this FAQ is always available from the main @@ -383,22 +383,24 @@ directive which permits Includes.
-
AddHandler server-parsed .shtml
-
+ <FilesMatch "\.shtml[.$]">
+ SetOutputFilter INCLUDES
+ </FilesMatch>
+
- This indicates that all files ending in ".shtml" in that - location (or its descendants) should be parsed. Note that using - ".html" will cause all normal HTML files to be parsed, - which may put an inordinate load on your server. + This indicates that all files with the extension + ".shtml" in that location (or its descendants) should be + parsed. Note that using ".html" will cause all normal + HTML files to be parsed, which may put an inordinate load on your + server.
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 +
Server Side Includes are implemented by the INCLUDES
+filter. 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
+<FilesMatch "\.shtml[.$]">
+ SetOutputFilter INCLUDES
+</FilesMatch>
+
+
+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 is set):
++ -Alternatively theOptions +Includes -
XBitHack
+Alternatively the XBitHack
directive can be used to parse normal (text/html
) files,
-based on file permissions.
+based on file permissions.
-For backwards compatibility, documents with mime type +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
).
+(and the resulting output given the mime type text/html
)
+as will documents with the handler server-parsed
.