From 3bc6a9a995f1e5158d915fd00809bba7ea73c91a Mon Sep 17 00:00:00 2001
From: Rainer Jung Some files in the The files in the The main file is The main file is The example module is an actual working module. If you link
- it into your server, enable the "example-handler" handler for a
+ it into your server, enable the "example-hooks-handler" handler for a
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. To include the example module in your server, follow the
+ To include the example_hooks module in your server, follow the
steps below: To add another module of your own: To activate the example module, include a block similar to
+ To activate the example_hooks module, include a block similar to
the following in your modules/experimental
directory
+ modules/examples
directory
under the Apache distribution directory tree are provided as an
example to those that wish to write modules that use the Apache
API.mod_example.c
, which
+ mod_example_hooks.c
, which
illustrates all the different callback mechanisms and call
syntaxes. By no means does an add-on module need to include
routines for all of the callbacks - quite the contrary!
--enable-example
+ Run --enable-example-hooks
option.make
").
-
cp modules/experimental/mod_example.c
+
cp modules/examples/mod_example_hooks.c
modules/new_module/mod_myexample.c
modules/new_module/config.m4
.
APACHE_MODPATH_INIT(new_module)
.modules/experimental/config.m4
.modules/examples/config.m4
.configure --help
.mod_example
Modulemod_example_hooks
Modulehttpd.conf
file:.htaccess
file
and then request the file "test.example" from that location:
After reloading/restarting your server, you should be able @@ -130,7 +130,7 @@ API
The Certains fichiers situés dans le répertoire
- Le fichier principal est Le fichier principal est Le module example fonctionne réellement. Si vous le chargez dans
- votre serveur, activez le gestionnaire "example-handler" dans une
+ Le module example_hooks fonctionne réellement. Si vous le chargez dans
+ votre serveur, activez le gestionnaire "example-hooks-handler" dans une
section location, et essayez d'accéder à la zone du site web
correspondante, vous verrez s'afficher certaines sorties que le
- module example produit au cours des différents appels.Example
diff --git a/docs/manual/mod/mod_example_hooks.xml.fr b/docs/manual/mod/mod_example_hooks.xml.fr
index 2fd183d09d..75cc60ad6d 100644
--- a/docs/manual/mod/mod_example_hooks.xml.fr
+++ b/docs/manual/mod/mod_example_hooks.xml.fr
@@ -22,41 +22,41 @@
limitations under the License.
-->
-
modules/experimental
de l'arborescence de la
+ modules/examples
de l'arborescence de la
distribution d'Apache sont fournis à titre d'exemples pour ceux qui
souhaitent écrire des modules qui utilisent l'API d'Apache.mod_example.c
, qui
+ mod_example_hooks.c
, qui
constitue une illustration exhaustive des différents mécanismes et
syntaxes d'appels. En aucun cas un module additionnel n'aura à
inclure des routines pour tous les appels - il n'en nécessitera au
contraire qu'un petit nombre !
Pour inclure le module example dans votre serveur, effectuez les +
Pour inclure le module example_hooks dans votre serveur, effectuez les étapes suivantes :
--enable-example
.--enable-example-hooks
.
make
").Pour ajouter votre propre module :
cp modules/experimental/mod_example.c
+ cp modules/examples/mod_example_hooks.c
modules/nouveau_module/mod_monexemple.c
- Modifiez le fichier.
@@ -73,9 +73,9 @@
- Créez
modules/nouveau_module/config.m4
.
- Ajoutez
APACHE_MODPATH_INIT(nouveau_module)
.
- - Copiez la ligne APACHE_MODULE contenant "example" depuis
-
modules/experimental/config.m4
.
- - Remplacez le premier argument "example" par
+
- Copiez la ligne APACHE_MODULE contenant "example_hooks" depuis
+
modules/examples/config.m4
.
+ - Remplacez le premier argument "example-hooks" par
monexemple.
- Remplacez le second argument par une brève description de
votre module. Cette description sera utilisée par la commande
@@ -105,13 +105,13 @@
mod_example
mod_example_hooks
- Pour activer le module example, ajoutez à votre fichier +
Pour activer le module example_hooks, ajoutez à votre fichier
httpd.conf
un bloc du style :
La directive Example
diff --git a/docs/manual/mod/mod_example_hooks.xml.meta b/docs/manual/mod/mod_example_hooks.xml.meta
index ddb2541c37..cd07cfa4ad 100644
--- a/docs/manual/mod/mod_example_hooks.xml.meta
+++ b/docs/manual/mod/mod_example_hooks.xml.meta
@@ -1,8 +1,8 @@
-