mod_info.xml.fr revision b1e8a4a1a94094f54da1200b4559b709b07ab00d
0066eddda7203f6345b56f77d146a759298dc635gryzor<?xml version="1.0"?>
0066eddda7203f6345b56f77d146a759298dc635gryzor<!DOCTYPE modulesynopsis SYSTEM "/style/modulesynopsis.dtd">
0066eddda7203f6345b56f77d146a759298dc635gryzor<?xml-stylesheet type="text/xsl" href="/style/manual.fr.xsl"?>
b1e8a4a1a94094f54da1200b4559b709b07ab00dlgentis<!-- English Revision : 1343935 -->
0066eddda7203f6345b56f77d146a759298dc635gryzor<!-- French translation : Lucien GENTIS -->
0066eddda7203f6345b56f77d146a759298dc635gryzor<!-- Reviewed by : Vincent Deffontaines -->
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor<!--
0066eddda7203f6345b56f77d146a759298dc635gryzor Licensed to the Apache Software Foundation (ASF) under one or more
0066eddda7203f6345b56f77d146a759298dc635gryzor contributor license agreements. See the NOTICE file distributed with
0066eddda7203f6345b56f77d146a759298dc635gryzor this work for additional information regarding copyright ownership.
0066eddda7203f6345b56f77d146a759298dc635gryzor The ASF licenses this file to You under the Apache License, Version 2.0
0066eddda7203f6345b56f77d146a759298dc635gryzor (the "License"); you may not use this file except in compliance with
0066eddda7203f6345b56f77d146a759298dc635gryzor the License. You may obtain a copy of the License at
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor http://www.apache.org/licenses/LICENSE-2.0
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor Unless required by applicable law or agreed to in writing, software
0066eddda7203f6345b56f77d146a759298dc635gryzor distributed under the License is distributed on an "AS IS" BASIS,
0066eddda7203f6345b56f77d146a759298dc635gryzor WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0066eddda7203f6345b56f77d146a759298dc635gryzor See the License for the specific language governing permissions and
0066eddda7203f6345b56f77d146a759298dc635gryzor limitations under the License.
0066eddda7203f6345b56f77d146a759298dc635gryzor-->
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor<modulesynopsis metafile="mod_info.xml.meta">
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor<name>mod_info</name>
0066eddda7203f6345b56f77d146a759298dc635gryzor<description>Affiche une pr&eacute;sentation compl&egrave;te de la configuration du
0066eddda7203f6345b56f77d146a759298dc635gryzorserveur</description>
0066eddda7203f6345b56f77d146a759298dc635gryzor<status>Extension</status>
0066eddda7203f6345b56f77d146a759298dc635gryzor<sourcefile>mod_info.c</sourcefile>
0066eddda7203f6345b56f77d146a759298dc635gryzor<identifier>info_module</identifier>
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor<summary>
0066eddda7203f6345b56f77d146a759298dc635gryzor <p>Pour activer <module>mod_info</module>, ajoutez les lignes
0066eddda7203f6345b56f77d146a759298dc635gryzor suivantes &agrave; votre fichier <code>httpd.conf</code>.</p>
0066eddda7203f6345b56f77d146a759298dc635gryzor
e2f05529a1835546e17527f56074c023e6a47366lgentis <highlight language="config">
e2f05529a1835546e17527f56074c023e6a47366lgentis&lt;Location /server-info&gt;
e2f05529a1835546e17527f56074c023e6a47366lgentis SetHandler server-info
e2f05529a1835546e17527f56074c023e6a47366lgentis&lt;/Location&gt;
e2f05529a1835546e17527f56074c023e6a47366lgentis </highlight>
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor <p>Il est recommand&eacute; d'utiliser <module>mod_access</module> &agrave;
0066eddda7203f6345b56f77d146a759298dc635gryzor l'int&eacute;rieur de la section <directive type="section"
0066eddda7203f6345b56f77d146a759298dc635gryzor module="core">Location</directive> afin de restreindre l'acc&egrave;s aux
0066eddda7203f6345b56f77d146a759298dc635gryzor informations de configuration de votre serveur :</p>
0066eddda7203f6345b56f77d146a759298dc635gryzor
e2f05529a1835546e17527f56074c023e6a47366lgentis <highlight language="config">
e2f05529a1835546e17527f56074c023e6a47366lgentis&lt;Location /server-info&gt;
e2f05529a1835546e17527f56074c023e6a47366lgentis SetHandler server-info
e2f05529a1835546e17527f56074c023e6a47366lgentis Require host example.com
e2f05529a1835546e17527f56074c023e6a47366lgentis&lt;/Location&gt;
e2f05529a1835546e17527f56074c023e6a47366lgentis </highlight>
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor <p>Une fois cette configuration effectu&eacute;e, les informations du
0066eddda7203f6345b56f77d146a759298dc635gryzor serveur sont disponibles &agrave; l'adresse
0066eddda7203f6345b56f77d146a759298dc635gryzor <code>http://votre-serveur.com/infos-serveur</code>.</p>
0066eddda7203f6345b56f77d146a759298dc635gryzor</summary>
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor<section id="security"><title>Probl&egrave;mes li&eacute;s &agrave; la s&eacute;curit&eacute;</title>
0066eddda7203f6345b56f77d146a759298dc635gryzor <p>Une fois <module>mod_info</module> charg&eacute; dans le serveur, sa
0066eddda7203f6345b56f77d146a759298dc635gryzor fonctionnalit&eacute; de gestionnaire est disponible dans <em>tous</em> les
0066eddda7203f6345b56f77d146a759298dc635gryzor fichiers de configuration, y compris les fichiers de configuration
0066eddda7203f6345b56f77d146a759298dc635gryzor des r&eacute;pertoires (par exemple <code>.htaccess</code>). Ceci peut
0066eddda7203f6345b56f77d146a759298dc635gryzor avoir des r&eacute;percutions en mati&egrave;re de s&eacute;curit&eacute; pour votre site.</p>
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor <p>En particulier, l'utilisation de ce module peut conduire &agrave; la
0066eddda7203f6345b56f77d146a759298dc635gryzor divulgation d'informations sensibles &agrave; partir des directives de
0066eddda7203f6345b56f77d146a759298dc635gryzor configuration d'autres modules Apache comme des chemins syst&egrave;mes,
0066eddda7203f6345b56f77d146a759298dc635gryzor des couples nom d'utilisateur/mot de passe, des noms de bases de
0066eddda7203f6345b56f77d146a759298dc635gryzor donn&eacute;es, etc... C'est pourquoi ce module ne doit &ecirc;tre utilis&eacute;
0066eddda7203f6345b56f77d146a759298dc635gryzor <strong>que</strong> dans un environnement sous contr&ocirc;le et toujours
0066eddda7203f6345b56f77d146a759298dc635gryzor avec les plus grandes pr&eacute;cautions.</p>
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor <p>Il est recommand&eacute; d'utiliser <module>mod_authz_host</module> pour
0066eddda7203f6345b56f77d146a759298dc635gryzor restreindre l'acc&egrave;s aux informations de configuration de votre
0066eddda7203f6345b56f77d146a759298dc635gryzor serveur.</p>
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor <example><title>Contr&ocirc;le d'acc&egrave;s</title>
e2f05529a1835546e17527f56074c023e6a47366lgentis <highlight language="config">
e2f05529a1835546e17527f56074c023e6a47366lgentis&lt;Location /server-info&gt;
e2f05529a1835546e17527f56074c023e6a47366lgentis SetHandler server-info
e2f05529a1835546e17527f56074c023e6a47366lgentis Order allow,deny
e2f05529a1835546e17527f56074c023e6a47366lgentis # Autorisation d'acc&egrave;s depuis le serveur lui-m&ecirc;me
e2f05529a1835546e17527f56074c023e6a47366lgentis Allow from 127.0.0.1
e2f05529a1835546e17527f56074c023e6a47366lgentis # Autorisation d'acc&egrave;s depuis une station de travail du r&eacute;seau
e2f05529a1835546e17527f56074c023e6a47366lgentis# local
e2f05529a1835546e17527f56074c023e6a47366lgentis Allow from 192.168.1.17
e2f05529a1835546e17527f56074c023e6a47366lgentis&lt;/Location&gt;
e2f05529a1835546e17527f56074c023e6a47366lgentis </highlight>
0066eddda7203f6345b56f77d146a759298dc635gryzor </example>
0066eddda7203f6345b56f77d146a759298dc635gryzor</section>
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor<section id="queries"><title>Filtrage des informations affich&eacute;es</title>
0066eddda7203f6345b56f77d146a759298dc635gryzor <p>Par d&eacute;faut, les informations affich&eacute;es comprennent une liste de
0066eddda7203f6345b56f77d146a759298dc635gryzor tous les modules activ&eacute;s, et pour chaque module, une description des
0066eddda7203f6345b56f77d146a759298dc635gryzor directives qu'il accepte, les branchements (hooks) qu'il
0066eddda7203f6345b56f77d146a759298dc635gryzor impl&eacute;mente, ainsi que les directives concern&eacute;es dans la
0066eddda7203f6345b56f77d146a759298dc635gryzor configuration courante.</p>
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor <p>Il est possible d'afficher d'autres vues de la configuration en
0066eddda7203f6345b56f77d146a759298dc635gryzor ajoutant un argument &agrave; la requ&ecirc;te <code>infos-serveur</code>. Par
0066eddda7203f6345b56f77d146a759298dc635gryzor exemple, <code>http://votre-serveur.com/infos-serveur?config</code>
0066eddda7203f6345b56f77d146a759298dc635gryzor affichera toutes les directives de configuration.</p>
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor <dl>
0066eddda7203f6345b56f77d146a759298dc635gryzor <dt><code>?&lt;module-name&gt;</code></dt>
0066eddda7203f6345b56f77d146a759298dc635gryzor <dd>Uniquement les informations relatives au module
0066eddda7203f6345b56f77d146a759298dc635gryzor sp&eacute;cifi&eacute;</dd>
0066eddda7203f6345b56f77d146a759298dc635gryzor <dt><code>?config</code></dt>
0066eddda7203f6345b56f77d146a759298dc635gryzor <dd>Uniquement les directives de configuration, non tri&eacute;es
0066eddda7203f6345b56f77d146a759298dc635gryzor par module</dd>
0066eddda7203f6345b56f77d146a759298dc635gryzor <dt><code>?hooks</code></dt>
0066eddda7203f6345b56f77d146a759298dc635gryzor <dd>Uniquement la liste des branchements (hooks)
0066eddda7203f6345b56f77d146a759298dc635gryzor auxquels le module est attach&eacute;</dd>
0066eddda7203f6345b56f77d146a759298dc635gryzor <dt><code>?list</code></dt>
0066eddda7203f6345b56f77d146a759298dc635gryzor <dd>Une simple liste des modules activ&eacute;s</dd>
0066eddda7203f6345b56f77d146a759298dc635gryzor <dt><code>?server</code></dt>
0066eddda7203f6345b56f77d146a759298dc635gryzor <dd>Uniquement des informations de base sur le serveur</dd>
0066eddda7203f6345b56f77d146a759298dc635gryzor </dl>
0066eddda7203f6345b56f77d146a759298dc635gryzor</section>
0066eddda7203f6345b56f77d146a759298dc635gryzor
8194a1b0db760af7e588c1bad92a1d933d39886elgentis<section id="startup"><title>Affichage de la configuration au d&eacute;marrage</title>
8194a1b0db760af7e588c1bad92a1d933d39886elgentis <p>Si la directive de configuration define
b1e8a4a1a94094f54da1200b4559b709b07ab00dlgentis <code>-DDUMP_CONFIG</code> est utilis&eacute;e, <module>mod_info</module> va
8194a1b0db760af7e588c1bad92a1d933d39886elgentis envoyer la configuration pr&eacute;interpr&eacute;t&eacute;e vers <code>stdout</code> au
b1e8a4a1a94094f54da1200b4559b709b07ab00dlgentis cours du d&eacute;marrage du serveur. "Pr&eacute;interpr&eacute;t&eacute;e" signifie que
b1e8a4a1a94094f54da1200b4559b709b07ab00dlgentis les directives telles que <directive type="section"
b1e8a4a1a94094f54da1200b4559b709b07ab00dlgentis module="core">IfDefine</directive> et <directive type="section"
b1e8a4a1a94094f54da1200b4559b709b07ab00dlgentis module="core">IfModule</directive> sont &eacute;valu&eacute;es et les variables
b1e8a4a1a94094f54da1200b4559b709b07ab00dlgentis d'environnement remplac&eacute;es par leurs valeurs. Cela ne repr&eacute;sente
b1e8a4a1a94094f54da1200b4559b709b07ab00dlgentis cependant pas la configuration d&eacute;finitive. En particulier, les
b1e8a4a1a94094f54da1200b4559b709b07ab00dlgentis fusions ou &eacute;crasementsde d&eacute;finitions en cas de directives multiples ne sont pas
b1e8a4a1a94094f54da1200b4559b709b07ab00dlgentis repr&eacute;sent&eacute;s.</p>
b1e8a4a1a94094f54da1200b4559b709b07ab00dlgentis
b1e8a4a1a94094f54da1200b4559b709b07ab00dlgentis <p>Le r&eacute;sultat est &eacute;quivalent &agrave; celui de la requ&ecirc;te
b1e8a4a1a94094f54da1200b4559b709b07ab00dlgentis <code>?config</code>.</p>
b1e8a4a1a94094f54da1200b4559b709b07ab00dlgentis
8194a1b0db760af7e588c1bad92a1d933d39886elgentis</section>
8194a1b0db760af7e588c1bad92a1d933d39886elgentis
0066eddda7203f6345b56f77d146a759298dc635gryzor<section id="limitations"><title>Limitations connues</title>
0066eddda7203f6345b56f77d146a759298dc635gryzor <p><module>mod_info</module> tire ses informations de
0066eddda7203f6345b56f77d146a759298dc635gryzor la configuration interpr&eacute;t&eacute;e, et non du fichier de configuration
0066eddda7203f6345b56f77d146a759298dc635gryzor original. La mani&egrave;re dont l'arbre de configuration interpr&eacute;t&eacute; est
0066eddda7203f6345b56f77d146a759298dc635gryzor cr&eacute;&eacute; induit quelques limitations :</p>
0066eddda7203f6345b56f77d146a759298dc635gryzor <ul>
0066eddda7203f6345b56f77d146a759298dc635gryzor <li>Les directives qui sont trait&eacute;es imm&eacute;diatement sans &ecirc;tre
0066eddda7203f6345b56f77d146a759298dc635gryzor enregistr&eacute;es dans l'arbre de configuration interpr&eacute;t&eacute; ne sont pas
0066eddda7203f6345b56f77d146a759298dc635gryzor prises en compte. Celles-ci comprennent <directive
0066eddda7203f6345b56f77d146a759298dc635gryzor module="core">ServerRoot</directive>, <directive
0066eddda7203f6345b56f77d146a759298dc635gryzor module="mod_so">LoadModule</directive> et <directive
0066eddda7203f6345b56f77d146a759298dc635gryzor module="mod_so">LoadFile</directive>.</li>
0066eddda7203f6345b56f77d146a759298dc635gryzor <li>Les directives qui contr&ocirc;lent le fichier de configuration
0066eddda7203f6345b56f77d146a759298dc635gryzor lui-m&ecirc;me, comme <directive module="core">Include</directive>,
0066eddda7203f6345b56f77d146a759298dc635gryzor <directive module="core">&lt;IfModule&gt;</directive> et
0066eddda7203f6345b56f77d146a759298dc635gryzor <directive module="core">&lt;IfDefine&gt;</directive> ne sont pas
0066eddda7203f6345b56f77d146a759298dc635gryzor prises en compte, mais les directives de configuration incluses le
0066eddda7203f6345b56f77d146a759298dc635gryzor sont.</li>
0066eddda7203f6345b56f77d146a759298dc635gryzor <li>Les commentaires ne sont pas pris en compte (Ce qui peut &ecirc;tre
0066eddda7203f6345b56f77d146a759298dc635gryzor consid&eacute;r&eacute; comme une fonctionnalit&eacute;).</li>
0066eddda7203f6345b56f77d146a759298dc635gryzor <li>Les directives de configuration des fichiers
0066eddda7203f6345b56f77d146a759298dc635gryzor <code>.htaccess</code> ne sont pas prises en compte (car elles ne
0066eddda7203f6345b56f77d146a759298dc635gryzor font pas partie de la configuration permanente du serveur).</li>
0066eddda7203f6345b56f77d146a759298dc635gryzor <li>Les directives de conteneur comme <directive
0066eddda7203f6345b56f77d146a759298dc635gryzor module="core">&lt;Directory&gt;</directive> sont affich&eacute;es
0066eddda7203f6345b56f77d146a759298dc635gryzor normalement, mais <module>mod_info</module> est incapable de
0066eddda7203f6345b56f77d146a759298dc635gryzor d&eacute;terminer le num&eacute;ro de ligne de la balise fermante <directive
0066eddda7203f6345b56f77d146a759298dc635gryzor module="core">&lt;/Directory&gt;</directive>.</li>
0066eddda7203f6345b56f77d146a759298dc635gryzor <li>Les directives g&eacute;n&eacute;r&eacute;es par des modules tiers comme
0066eddda7203f6345b56f77d146a759298dc635gryzor <a href="http://perl.apache.org">mod_perl</a> peuvent ne pas &ecirc;tre
0066eddda7203f6345b56f77d146a759298dc635gryzor prises en compte.</li>
0066eddda7203f6345b56f77d146a759298dc635gryzor </ul>
0066eddda7203f6345b56f77d146a759298dc635gryzor</section>
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor<directivesynopsis>
0066eddda7203f6345b56f77d146a759298dc635gryzor<name>AddModuleInfo</name>
0066eddda7203f6345b56f77d146a759298dc635gryzor<description>Ajoute des donn&eacute;es suppl&eacute;mentaires aux informations de
0066eddda7203f6345b56f77d146a759298dc635gryzormodule affich&eacute;es par le gestionnaire server-info</description>
0066eddda7203f6345b56f77d146a759298dc635gryzor<syntax>AddModuleInfo <var>nom-module</var> <var>cha&icirc;ne</var></syntax>
0066eddda7203f6345b56f77d146a759298dc635gryzor<contextlist><context>server config</context><context>virtual host</context>
0066eddda7203f6345b56f77d146a759298dc635gryzor</contextlist>
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor<usage>
0066eddda7203f6345b56f77d146a759298dc635gryzor <p>Cette directive permet d'afficher le contenu de <var>cha&icirc;ne</var>
0066eddda7203f6345b56f77d146a759298dc635gryzor en tant qu'<strong>Information suppl&eacute;mentaire</strong> interpr&eacute;t&eacute;e
0066eddda7203f6345b56f77d146a759298dc635gryzor en HTML pour le module <var>nom-module</var>. Exemple :</p>
0066eddda7203f6345b56f77d146a759298dc635gryzor
e2f05529a1835546e17527f56074c023e6a47366lgentis <highlight language="config">
e2f05529a1835546e17527f56074c023e6a47366lgentisAddModuleInfo mod_deflate.c 'See &lt;a \
e2f05529a1835546e17527f56074c023e6a47366lgentis href="http://www.apache.org/docs/&httpd.docs;/mod/mod_deflate.html"&gt;\
e2f05529a1835546e17527f56074c023e6a47366lgentis http://www.apache.org/docs/&httpd.docs;/mod/mod_deflate.html&lt;/a&gt;'
e2f05529a1835546e17527f56074c023e6a47366lgentis </highlight>
0066eddda7203f6345b56f77d146a759298dc635gryzor</usage>
0066eddda7203f6345b56f77d146a759298dc635gryzor
0066eddda7203f6345b56f77d146a759298dc635gryzor</directivesynopsis>
0066eddda7203f6345b56f77d146a759298dc635gryzor</modulesynopsis>