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.xml.fr b/docs/manual/mod/mod_example_hooks.xml.fr
similarity index 78%
rename from docs/manual/mod/mod_example.xml.fr
rename to docs/manual/mod/mod_example_hooks.xml.fr
index d96bf8c350..5e31dd8b43 100644
--- a/docs/manual/mod/mod_example.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 :
Après avoir rechargé la configuration ou redémarré votre serveur,
@@ -141,9 +141,9 @@ Apache
La directive ¾ÆÆÄÄ¡ ¹èÆ÷º» ¾ÆÆÄÄ¡ ¹èÆ÷º» example ¸ðµâÀº ½ÇÁ¦·Î µ¿ÀÛÇÏ´Â ¸ðµâÀÌ´Ù. ÀÌ ¸ðµâÀ» ¼¹ö¿¡
- ¿¬°áÇÏ°í Æ¯Á¤ À§Ä¡¿¡ "example-handler" Çڵ鷯¸¦ ÇÒ´çÇÏ¿©
+ ¿¬°áÇÏ°í Æ¯Á¤ À§Ä¡¿¡ "example-hooks-handler" Çڵ鷯¸¦ ÇÒ´çÇÏ¿©
±×°÷À» ºê¶ó¿ì¡Çϸé example ¸ðµâÀÇ ¿©·¯ ÄݹéÀ» È®ÀÎÇÒ ¼ö
ÀÖ´Ù. ÀÚ½ÅÀÌ ¸¸µç ¸ðµâÀ» Ãß°¡ÇÏ·Á¸é:Example
diff --git a/docs/manual/mod/mod_example.xml.ko b/docs/manual/mod/mod_example_hooks.xml.ko
similarity index 81%
rename from docs/manual/mod/mod_example.xml.ko
rename to docs/manual/mod/mod_example_hooks.xml.ko
index e2927d9e0a..c00928d642 100644
--- a/docs/manual/mod/mod_example.xml.ko
+++ b/docs/manual/mod/mod_example_hooks.xml.ko
@@ -1,7 +1,7 @@
-
+
-
modules/experimental
µð·ºÅ丮¿¡
+ modules/examples
µð·ºÅ丮¿¡
ÀÖ´Â ÆÄÀϵéÀº ¾ÆÆÄÄ¡ API¸¦ »ç¿ëÇÏ¿© ¸ðµâÀ» ÀÛ¼ºÇÏ·Á´Â »ç¶÷µéÀ»
µ½±âÀ§ÇÑ ¿¹Á¦´Ù.mod_example.c
´Â ¸ðµç Äݹé(callback) ±¸Á¶¿Í
+ mod_example_hooks.c
´Â ¸ðµç Äݹé(callback) ±¸Á¶¿Í
È£Ãâ ¹®¹ýÀ» ¼³¸íÇÏ´Â ÆÄÀÏÀÌ´Ù. ´ç½ÅÀº ¸ðµâ¿¡ ÀÌ ¸ðµç ÄݹéÀ»
±¸ÇöÇÒ Çʿ䰡 ¾ø´Ù. »ç½Ç Á¤¹Ý´ë´Ù!
--enable-example
¿É¼Ç°ú ÇÔ²²
+ --enable-example-hooks
¿É¼Ç°ú ÇÔ²²
configure
¸¦ ½ÇÇàÇÑ´Ù.make
"¸¦ ½ÇÇàÇÑ´Ù).
-
cp modules/experimental/mod_example.c
+
cp modules/examples/mod_example_hooks.c
modules/new_module/mod_myexample.c
APACHE_MODPATH_INIT(new_module)
À»
Ãß°¡ÇÑ´Ù.modules/experimental/config.m4
ÆÄÀÏ¿¡¼
- "example"ÀÌ ÀÖ´Â APACHE_MODULE ÁÙÀ» º¹»çÇØ¿Â´Ù.modules/examples/config.m4
ÆÄÀÏ¿¡¼
+ "example_hooks"ÀÌ ÀÖ´Â APACHE_MODULE ÁÙÀ» º¹»çÇØ¿Â´Ù.configure --help
¸¦
@@ -94,13 +94,13 @@
mod_example
¸ðµâ »ç¿ëÇϱâmod_example_hooks
¸ðµâ »ç¿ëÇϱâexample ¸ðµâÀ» »ç¿ëÇÏ·Á¸é httpd.conf
ÆÄÀÏ¿¡
´ÙÀ½°ú °°Àº ¼³Á¤À» Ãß°¡Ç϶ó:
¼¹ö¸¦ Àç½ÃÀÛÇÑ ÈÄ ÀÌ À§Ä¡¸¦ ºê¶ó¿ì¡ÇÏ¸é ¾Õ¿¡¼ ¸»ÇÑ
diff --git a/docs/manual/mod/mod_example.xml.meta b/docs/manual/mod/mod_example_hooks.xml.meta
similarity index 75%
rename from docs/manual/mod/mod_example.xml.meta
rename to docs/manual/mod/mod_example_hooks.xml.meta
index ddb2541c37..cd07cfa4ad 100644
--- a/docs/manual/mod/mod_example.xml.meta
+++ b/docs/manual/mod/mod_example_hooks.xml.meta
@@ -1,8 +1,8 @@
-