1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
<HTML>
<BODY TEXT="#000000" LINK="#0000FF" VLINK="#551A8B" ALINK="#FF0000" BGCOLOR="#FFFFFF">
<H2>Layout</H2>
<H3>Description</H3>
<P><B>Layout</B> is a form of the Layout Directive Family that
inserts data whenever its pattern is matched. It takes a third
optional parameter which determines if the pattern is replaced,
append, or prepend. If nothing is specified the replaced is assumed.
<br>This directive was added in version 3.1.0.
</p>
<H3>Example 1 (straight text)</H3>
<BLOCKQUOTE>
<VirtualHost www.foo.com:80><BR>
Layout "<-- copyright -->" "Copyright Foobar, 2000" replace<BR>
</VirtualHost><BR>
</BLOCKQUOTE>
<H3>Example 2 (cache'd HTML document)</H3>
<BLOCKQUOTE>
<VirtualHost www.foo.com:80><BR>
Layout </BODY> /usr/local/apache/htdocs/footer.html append<BR>
</VirtualHost><BR>
</BLOCKQUOTE>
<H3>Example 3 (Dynamic URI)</H3>
<BLOCKQUOTE>
<VirtualHost www.foo.com:80><BR>
Layout </BODY> /copyright.cgi prepend<BR>
</VirtualHost><BR>
</BLOCKQUOTE>
<P>
<H3>Known Problems</H3>
None currently known.
</BODY>
</HTML>
|