Commit f35bef1e authored by Joshua Slive's avatar Joshua Slive
Browse files

Update all the references I can find to use SetOutputFilter to

actives SSIs.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88072 13f79535-47bb-0310-9956-ffa450edef68
parent 42911722
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -143,7 +143,9 @@ such as <code>.shtml</code>, with the following directives:</p>

<pre>
        AddType text/html .shtml
        AddHandler server-parsed .shtml
        &lt;FilesMatch "\.shtml[.$]"&gt;
          SetOutputFilter INCLUDES<br>
        &lt;/FilesMatch&gt;
</pre>

<p>One disadvantage to this approach is that if you wanted to add SSI
+3 −1
Original line number Diff line number Diff line
@@ -143,7 +143,9 @@ such as <code>.shtml</code>, with the following directives:</p>

<pre>
        AddType text/html .shtml
        AddHandler server-parsed .shtml
        &lt;FilesMatch "\.shtml[.$]"&gt;
          SetOutputFilter INCLUDES<br>
        &lt;/FilesMatch&gt;
</pre>

<p>One disadvantage to this approach is that if you wanted to add SSI
+13 −11
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@
  <!--#include virtual="header.html" -->
  <H1 ALIGN="CENTER">Apache Server Frequently Asked Questions</H1>
  <P>
  $Revision: 1.7 $ ($Date: 2000/12/02 21:39:03 $)
  $Revision: 1.8 $ ($Date: 2001/02/10 23:33:36 $)
  </P>
  <P>
  The latest version of this FAQ is always available from the main
@@ -383,22 +383,24 @@
    directive which permits <SAMP>Includes</SAMP>.
   </LI>
   <LI>Make sure that the directory where you want the SSI documents to
    live is covered by the &quot;server-parsed&quot; content handler,
    live is covered by the &quot;INCLUDES&quot; output filter,
    either explicitly or in some ancestral location.  That can be done
    with the following
    <A HREF="../mod/mod_mime.html#addhandler"><SAMP>AddHandler</SAMP></A>
    <A HREF="../mod/core.html#setoutputfilter"><SAMP>SetOutputFilter</SAMP></A>
    directive:
    <P>
    <DL>
     <DD><CODE>AddHandler server-parsed .shtml</CODE>
     </DD>
    </DL>
    <blockquote><code>
    &lt;FilesMatch "\.shtml[.$]"&gt;<br>
    &nbsp;&nbsp;SetOutputFilter INCLUDES<br>
    &lt;/FilesMatch&gt;
    </code></blockquote>
    <P></P>
    <P>
    This indicates that all files ending in &quot;.shtml&quot; in that
    location (or its descendants) should be parsed.  Note that using
    &quot;.html&quot; 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
    &quot;.shtml&quot; in that location (or its descendants) should be
    parsed.  Note that using &quot;.html&quot; will cause all normal
    HTML files to be parsed, which may put an inordinate load on your
    server.
    </P>
   </LI>
  </UL>
+3 −1
Original line number Diff line number Diff line
@@ -145,7 +145,9 @@ the contained directives- must be omitted.)</SMALL>
   AllowOverride none
   Options MultiViews IncludesNoExec FollowSymLinks
   AddType text/html .shtml
   AddHandler server-parsed .shtml
   &lt;FilesMatch "\.shtml[.$]"&gt;
    SetOutputFilter INCLUDES
   &lt;/FilesMatch&gt;
  &lt;/Directory&gt;
  #    "400 Bad Request",
  ErrorDocument  400  /errordocs/400
+23 −19
Original line number Diff line number Diff line
@@ -61,34 +61,38 @@ and <a href="mod_mime.html#addhandler">AddHandler</a>.</p>

<H2>Enabling Server-Side Includes</H2>

Any document with handler of "server-parsed" will be parsed by this
module, if the <CODE>Includes</CODE> 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 <CODE>text/html</CODE>:

<PRE>
AddType text/html .shtml
AddHandler server-parsed .shtml
</PRE>

The following directive must be given for the directories containing
<p>Server Side Includes are implemented by the <code>INCLUDES</code>
<a href="../filter.html">filter</a>.  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 <CODE>text/html</CODE>:
</p>

<blockquote><code>
AddType text/html .shtml<br>
&lt;FilesMatch "\.shtml[.$]"&gt;<br>
&nbsp;&nbsp;SetOutputFilter INCLUDES<br>
&lt;/FilesMatch&gt;
</code></blockquote>

<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
Options</CODE> is set):
Options</CODE> is set):</p>

<PRE>
<blockquote><code>
Options +Includes
</PRE>
</code></blockquote>

Alternatively the <A HREF="#xbithack"><CODE>XBitHack</CODE></A>
<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>
based on file permissions.</p>

For backwards compatibility, documents with mime type
<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>).
(and the resulting output given the mime type <CODE>text/html</CODE>)
as will documents with the handler <code>server-parsed</code>.

<H2>Basic Elements</H2>