diff options
Diffstat (limited to 'docs/manual/mod/mod_example.html.en')
-rw-r--r-- | docs/manual/mod/mod_example.html.en | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/docs/manual/mod/mod_example.html.en b/docs/manual/mod/mod_example.html.en index 3291f27354..f3eb13e75b 100644 --- a/docs/manual/mod/mod_example.html.en +++ b/docs/manual/mod/mod_example.html.en @@ -1,17 +1,19 @@ -<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><!-- +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX This file is generated from xml source: DO NOT EDIT XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - --><title>mod_example - Apache HTTP Server</title><link href="../style/manual.css" type="text/css" rel="stylesheet"></head><body><blockquote><div align="center"><img src="../images/sub.gif" alt="[APACHE DOCUMENTATION]"><h3>Apache HTTP Server Version 2.0</h3></div><h1 align="center">Apache Module mod_example</h1><table cellspacing="1" cellpadding="0" bgcolor="#cccccc"><tr><td><table bgcolor="#ffffff"><tr><td nowrap="nowrap" valign="top"><span class="help">Description: - </span></td><td>Illustrates the Apache module API</td></tr><tr><td nowrap="nowrap"><a href="module-dict.html#Status" class="help">Status: - </a></td><td>Experimental</td></tr><tr><td nowrap="nowrap"><a href="module-dict.html#ModuleIdentifier" class="help">Module Identifier: - </a></td><td>example_module</td></tr></table></td></tr></table><h2>Summary</h2> -<blockquote><table><tr><td bgcolor="#ffe5f5"> + --><title>mod_example - Apache HTTP Server</title><link href="../style/css/manual-sbar-right-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="right sidebar - blue (font 100%)" /><link href="../style/css/manual-sbar-right-90pc.css" rel="alternate stylesheet" media="all" type="text/css" title="right sidebar - blue (font 90%)" /><link href="../style/css/manual-sbar-right-fix15.css" rel="stylesheet" media="all" type="text/css" title="right sidebar - blue (font fix 15)" /><link href="../style/css/manual-sbar-right-fix13.css" rel="alternate stylesheet" media="all" type="text/css" title="right sidebar - blue (font fix 13)" /><link href="../style/css/manual-sbar-right-100pc-b.css" rel="alternate stylesheet" media="all" type="text/css" title="right sidebar - black (font 100%)" /><link href="../style/css/manual-sbar-right-90pc-b.css" rel="alternate stylesheet" media="all" type="text/css" title="right sidebar - black (font 90%)" /><link href="../style/css/manual-sbar-right-fix15-b.css" rel="alternate stylesheet" media="all" type="text/css" title="right sidebar - black (font fix 15)" /><link href="../style/css/manual-sbar-right-fix13-b.css" rel="alternate stylesheet" media="all" type="text/css" title="right sidebar - black (font fix 13)" /><link href="../style/css/manual-sbar-left-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="left sidebar - blue (font 100%)" /><link href="../style/css/manual-sbar-left-90pc.css" rel="alternate stylesheet" media="all" type="text/css" title="left sidebar - blue (font 90%)" /><link href="../style/css/manual-sbar-left-fix15.css" rel="alternate stylesheet" media="all" type="text/css" title="left sidebar - blue (font fix 15)" /><link href="../style/css/manual-sbar-left-fix13.css" rel="alternate stylesheet" media="all" type="text/css" title="left sidebar - blue (font fix 13)" /><link href="../style/css/manual-sbar-left-100pc-b.css" rel="alternate stylesheet" media="all" type="text/css" title="left sidebar - black (font 100%)" /><link href="../style/css/manual-sbar-left-90pc-b.css" rel="alternate stylesheet" media="all" type="text/css" title="left sidebar - black (font 90%)" /><link href="../style/css/manual-sbar-left-fix15-b.css" rel="alternate stylesheet" media="all" type="text/css" title="left sidebar - black (font fix 15)" /><link href="../style/css/manual-sbar-left-fix13-b.css" rel="alternate stylesheet" media="all" type="text/css" title="left sidebar - black (font fix 13)" /><link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="loose style - blue (font 100%)" /><link href="../style/css/manual-loose-90pc.css" rel="alternate stylesheet" media="all" type="text/css" title="loose style - blue (font 90%)" /><link href="../style/css/manual-loose-fix15.css" rel="alternate stylesheet" media="all" type="text/css" title="loose style - blue (font fix 15)" /><link href="../style/css/manual-loose-fix13.css" rel="alternate stylesheet" media="all" type="text/css" title="loose style - blue (font fix 13)" /><link href="../style/css/manual-loose-100pc-b.css" rel="alternate stylesheet" media="all" type="text/css" title="loose style - black (font 100%)" /><link href="../style/css/manual-loose-90pc-b.css" rel="alternate stylesheet" media="all" type="text/css" title="loose style - black (font 90%)" /><link href="../style/css/manual-loose-fix15-b.css" rel="alternate stylesheet" media="all" type="text/css" title="loose style - black (font fix 15)" /><link href="../style/css/manual-loose-fix13-b.css" rel="alternate stylesheet" media="all" type="text/css" title="loose style - black (font fix 13)" /><link href="../images/favicon.ico" rel="shortcut icon" /></head><body><div id="page-header"><p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p><p class="apache">Apache HTTP Server Version 2.0</p><img alt="" src="../images/feather.gif" /></div><div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div><div id="path"><a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs-project/">Documentation</a> > <a href="../">Version 2.0</a> > <a href="./">Modules</a></div><div id="page-content"><div id="preamble"><h1>Apache Module mod_example</h1><table class="module"><tr><th>Description: + </th><td>Illustrates the Apache module API</td></tr><tr><th><a href="module-dict.html#Status">Status: + </a></th><td>Experimental</td></tr><tr><th><a href="module-dict.html#ModuleIdentifier">Module Identifier: + </a></th><td>example_module</td></tr></table><h3>Summary</h3> +<div class="warning"> This document has not been updated to take into account changes made in the 2.0 version of the Apache HTTP Server. Some of the information may still be relevant, but please use it with care. -</td></tr></table></blockquote> +</div> <p>The files in the <code>src/modules/example directory</code> under the Apache distribution directory tree are provided as an @@ -28,7 +30,7 @@ location, and then browse to that location, you will see a display of some of the tracing the example module did as the various callbacks were made.</p> -<h2>Directives</h2><ul><li><a href="#example">Example</a></li></ul><h2>Compiling the example module</h2> +</div><div id="quickview"><h3 class="directives">Directives</h3><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#example">Example</a></li></ul><h3>Topics</h3><ul id="topics"><li><img alt="" src="../images/down.gif" /> Compiling the example module</li><li><img alt="" src="../images/down.gif" /> Using the <code>mod_example</code> Module</li></ul></div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div><div class="section"><h2>Compiling the example module</h2> <p>To include the example module in your server, follow the steps below:</p> @@ -38,13 +40,13 @@ Uncomment the "AddModule modules/example/mod_example" line near the bottom of the <code>src/Configuration</code> file. If there isn't one, add it; it should look like this: -<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code> +<div class="example"><p><code> AddModule modules/example/mod_example.o -</code></td></tr></table></blockquote> +</code></p></div> </li> <li>Run the <code>src/Configure</code> script - ("<code>cd src; ./Configure</code>"). This will + ("<code>cd src; ./Configure</code>"). This will build the Makefile for the server itself, and update the <code>src/modules/Makefile</code> for any additional modules you have requested from beneath that subdirectory.</li> @@ -55,7 +57,7 @@ <p>To add another module of your own:</p> - <ol type="A"> + <ol class="up-A"> <li><code>mkdir src/modules/<em>mymodule</em></code></li> <li><code>cp src/modules/example/* @@ -66,32 +68,32 @@ <li>Follow steps [1] through [3] above, with appropriate changes.</li> </ol> -<h2>Using the <code>mod_example</code> Module</h2> +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div><div class="section"><h2>Using the <code>mod_example</code> Module</h2> <p>To activate the example module, include a block similar to the following in your <code>srm.conf</code> file:</p> -<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code> - <Location /example-info><br> - SetHandler example-handler<br> +<div class="example"><p><code> + <Location /example-info><br /> + SetHandler example-handler<br /> </Location> -</code></td></tr></table></blockquote> +</code></p></div> <p>As an alternative, you can put the following into a <a href="core.html#accessfilename"><code>.htaccess</code></a> file and then request the file "test.example" from that location:</p> -<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code> +<div class="example"><p><code> AddHandler example-handler .example -</code></td></tr></table></blockquote> +</code></p></div> <p>After reloading/restarting your server, you should be able to browse to this location and see the brief display mentioned earlier.</p> -<hr><h2><a name="Example">Example</a> <a name="example">Directive</a></h2><table cellpadding="1" cellspacing="0" border="0" bgcolor="#cccccc"><tr><td><table bgcolor="#ffffff"><tr><td nowrap="nowrap"><strong>Description: - </strong></td><td>Demonstration directive to illustrate the Apache module -API</td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Syntax" class="help">Syntax: - </a></td><td>Example</td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Context" class="help">Context: - </a></td><td>server config, virtual host, directory, .htaccess</td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Status" class="help">Status: - </a></td><td>Experimental</td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Module" class="help">Module: - </a></td><td>mod_example</td></tr></table></td></tr></table> +</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div><div class="directive-section"><h2><a name="Example" id="Example">Example</a> <a name="example" id="example">Directive</a></h2><table class="directive"><tr><th>Description: + </th><td>Demonstration directive to illustrate the Apache module +API</td></tr><tr><th><a href="directive-dict.html#Syntax">Syntax: + </a></th><td>Example</td></tr><tr><th><a href="directive-dict.html#Context">Context: + </a></th><td>server config, virtual host, directory, .htaccess</td></tr><tr><th><a href="directive-dict.html#Status">Status: + </a></th><td>Experimental</td></tr><tr><th><a href="directive-dict.html#Module">Module: + </a></th><td>mod_example</td></tr></table> <p>The <code class="directive">Example</code> directive just sets a demonstration flag which the example module's content handler displays. It takes no arguments. If you browse to an URL to which the @@ -100,4 +102,4 @@ API</td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Syntax" class= called to service the document request. The effect of this directive one can observe under the point "<code>Example directive declared here: YES/NO</code>".</p> -<hr></blockquote><h3 align="center">Apache HTTP Server Version 2.0</h3><a href="./"><img src="../images/index.gif" alt="Index"></a><a href="../"><img src="../images/home.gif" alt="Home"></a></body></html>
\ No newline at end of file +</div></div><div id="footer"><p class="apache">Maintained by the <a href="http://httpd.apache.org/docs-project/">Apache HTTP Server Documentation Project</a></p><p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div></body></html>
\ No newline at end of file |