]> granicus.if.org Git - apache/commitdiff
Some doc updates realted to ssi.
authorJoshua Slive <slive@apache.org>
Mon, 23 Jul 2001 15:50:47 +0000 (15:50 +0000)
committerJoshua Slive <slive@apache.org>
Mon, 23 Jul 2001 15:50:47 +0000 (15:50 +0000)
1. Add info on how to activate ssi to upgrading.html.

2. Remove mention of the ssi magic mime-types, since they no
longer work.

3. Place a warning on xbithack that it doesn't currently work,
and reference the bug report.

4. Add a warning about mod_include parsing non-html content.

5. Misc little fixups.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89655 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/howto/ssi.html.en
docs/manual/mod/mod_include.html
docs/manual/upgrading.html
docs/manual/upgrading.html.en

index 861545fbe117d362eab0eed6c88fc2530ce61294..19de050bc5e26e0052c989025ed152f6b511a287 100644 (file)
@@ -83,7 +83,7 @@ Tutorial: Introduction to Server Side Includes</a></h2>
  <a href="../mod/core.html#options">Options</a><br>
 <a href="../mod/mod_include.html#xbithack">XBitHack</a><br>
 <a href="../mod/mod_mime.html#addtype">AddType</a><br>
-<a href="../mod/mod_mime.html#addhandler">AddHandler</a><br>
+<a href="../mod/core.html.html#setoutputfilter">SetOutputFilter</a><br>
 <a href=
 "../mod/mod_setenvif.html#BrowserMatchNoCase">BrowserMatchNoCase</a><br>
 
index ee32bf010acae12b7c1f8fd57af918d6408e6f25..722120ea03e0cc0d7652fa2069deeab087157c2c 100644 (file)
@@ -49,7 +49,7 @@ variables.</p>
 </UL>
 
 <p>See also: <a href="core.html#options">Options</a>
-and <a href="mod_mime.html#addhandler">AddHandler</a>.</p>
+and <a href="core.html.html#SetOutputFilter">SetOutputFilter</a>.</p>
 
 
 <H2>Enabling Server-Side Includes</H2>
@@ -68,6 +68,16 @@ AddType text/html .shtml<br>
 &lt;/FilesMatch&gt;
 </code></blockquote>
 
+<p>Be careful to properly scope the INCLUDES filter to process only
+the correct files.  The filter is <strong>not</strong> restricted to
+processing only HTML files.  So, for example, if the INCLUDES filter
+is activated using a <code>&lt;Directory&gt;</code> section and that
+directory includes GIF files, mod_include will process the GIF files.
+This can have two adverse consequences: 1. there will be extra
+overhead in serving these files, and 2. these files could become
+corrupted if they happen to contain something that looks like an SSI
+element.</p>
+
 <p>The following directive must be given for the directories containing
 the shtml files (typically in a <CODE>&lt;Directory&gt;</CODE> section,
 but this directive is also valid .htaccess files if <CODE>AllowOverride
@@ -77,15 +87,8 @@ Options</CODE> is set):</p>
 Options +Includes
 </code></blockquote>
 
-<p>Alternatively the <A HREF="#xbithack"><CODE>XBitHack</CODE></A>
-directive can be used to parse normal (<CODE>text/html</CODE>) files,
-based on file permissions.</p>
-
-<p>For backwards compatibility, documents with mime type
-<CODE>text/x-server-parsed-html</CODE> or
-<CODE>text/x-server-parsed-html3</CODE> will also be parsed
-(and the resulting output given the mime type <CODE>text/html</CODE>)
-as will documents with the handler <code>server-parsed</code>.
+<p>For more information, see our <a href="../howto/ssi.html">Tutorial
+on Server Side Includes</a>.</p>
 
 <H2>Basic Elements</H2>
 
@@ -442,6 +445,12 @@ customized server error documents.
  REL="Help"
 ><STRONG>Module:</STRONG></A> mod_include<P>
 
+<p><strong>Warning:</strong> This directive is not yet working in
+Apache 2.0.  The issue is being tracked in <a
+href="http://bugs.apache.org/index.cgi/full/7751">PR7751</a>.</p>
+
+
+
 The XBitHack directives controls the parsing of ordinary html documents.
 This directive only affects files associated with the MIME type
 <CODE>text/html</CODE>.  XBitHack can take on the following values:
index 9b315f50482dc212e3dc034db1b25fcb4b5b0b8d..901927f595e39ebeedfc6b13a8cb8bd4db44adf1 100644 (file)
@@ -24,9 +24,9 @@ Features</A> document, or in the <CODE>src/CHANGES</CODE> file.
 
 <UL>
 <LI>Apache now uses an <code>autoconf</code> and <code>libtool</code>
-system for configuring the build processes.  Using this system
-is similar to, but not the same as, using the APACI system in
-Apache 1.3.  Further documentation to follow.</li>
+system for <a href="install.html">configuring the build processes</a>.
+Using this system is similar to, but not the same as, using the APACI
+system in Apache 1.3.</li>
 
 <li>In addition to the usual selection of modules which you can choose
 to compile, Apache 2.0 has moved the main part of request processing
@@ -36,6 +36,7 @@ into <a href="mpm.html">Multi-Processing Modules</a> (MPMs).</li>
 <H3>Run-Time Configuration Changes</H3>
 
 <UL>
+
 <li>Many directives that were in the core server in Apache 1.3
 are now in the MPMs.  If you wish the behavior of the server
 to be as similar as possible to the behavior of Apache 1.3,
@@ -43,6 +44,22 @@ you should select the <a href="mod/prefork.html">prefork</a>
 MPM.  Other MPMs will have different directives to control process
 creation and request processing.</li>
 
+<li>Server-Side Includes provided by <a
+href="mod/mod_include.html">mod_include</a> are now implemented using
+the new
+<a href="filter.html">filter system</a> rather than as a handler.
+This provides much more power and flexibility, but requires 
+the use of the <a href="mod/core.html#setoutputfilter">SetOutputFilter</a>
+to activate server-parsed content.  If you were using
+<code>AddHandler server-parsed .shtml</code>, you can get
+similar functionality using
+<blockquote><code>
+&lt;FilesMatch "\.shtml(\..+)?$"&gt;<br>
+&nbsp;&nbsp;SetOutputFilter INCLUDES<br>
+&lt;/FilesMatch&gt;
+</code></blockquote></li>
+
+
 <li>The <code>CacheNegotiatedDocs</code> directive now takes
 the argument <code>on</code> or <code>off</code>.  Existing
 instances of <code>CacheNegotiatedDocs</code> should be replaced
index 9b315f50482dc212e3dc034db1b25fcb4b5b0b8d..901927f595e39ebeedfc6b13a8cb8bd4db44adf1 100644 (file)
@@ -24,9 +24,9 @@ Features</A> document, or in the <CODE>src/CHANGES</CODE> file.
 
 <UL>
 <LI>Apache now uses an <code>autoconf</code> and <code>libtool</code>
-system for configuring the build processes.  Using this system
-is similar to, but not the same as, using the APACI system in
-Apache 1.3.  Further documentation to follow.</li>
+system for <a href="install.html">configuring the build processes</a>.
+Using this system is similar to, but not the same as, using the APACI
+system in Apache 1.3.</li>
 
 <li>In addition to the usual selection of modules which you can choose
 to compile, Apache 2.0 has moved the main part of request processing
@@ -36,6 +36,7 @@ into <a href="mpm.html">Multi-Processing Modules</a> (MPMs).</li>
 <H3>Run-Time Configuration Changes</H3>
 
 <UL>
+
 <li>Many directives that were in the core server in Apache 1.3
 are now in the MPMs.  If you wish the behavior of the server
 to be as similar as possible to the behavior of Apache 1.3,
@@ -43,6 +44,22 @@ you should select the <a href="mod/prefork.html">prefork</a>
 MPM.  Other MPMs will have different directives to control process
 creation and request processing.</li>
 
+<li>Server-Side Includes provided by <a
+href="mod/mod_include.html">mod_include</a> are now implemented using
+the new
+<a href="filter.html">filter system</a> rather than as a handler.
+This provides much more power and flexibility, but requires 
+the use of the <a href="mod/core.html#setoutputfilter">SetOutputFilter</a>
+to activate server-parsed content.  If you were using
+<code>AddHandler server-parsed .shtml</code>, you can get
+similar functionality using
+<blockquote><code>
+&lt;FilesMatch "\.shtml(\..+)?$"&gt;<br>
+&nbsp;&nbsp;SetOutputFilter INCLUDES<br>
+&lt;/FilesMatch&gt;
+</code></blockquote></li>
+
+
 <li>The <code>CacheNegotiatedDocs</code> directive now takes
 the argument <code>on</code> or <code>off</code>.  Existing
 instances of <code>CacheNegotiatedDocs</code> should be replaced