]> granicus.if.org Git - apache/commitdiff
Updates.
authorLucien Gentis <lgentis@apache.org>
Sun, 20 May 2012 14:37:29 +0000 (14:37 +0000)
committerLucien Gentis <lgentis@apache.org>
Sun, 20 May 2012 14:37:29 +0000 (14:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1340743 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/dns-caveats.xml.fr
docs/manual/expr.xml.fr
docs/manual/glossary.xml.fr
docs/manual/index.xml.fr
docs/manual/logs.xml.fr
docs/manual/mod/mod_proxy.xml.fr
docs/manual/vhosts/examples.xml.fr
docs/manual/vhosts/fd-limits.xml.fr
docs/manual/vhosts/name-based.xml.fr

index 6e3e213a3756890197eb164371b41c4fc6d9577c..5a69bf69ff9370786320706a84c7c83015b81096 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="ISO-8859-1" ?>
 <!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="./style/manual.fr.xsl"?>
-<!-- English Revision: 1174747:1334033 (outdated) -->
+<!-- English Revision : 1334033 -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
 
   <section id="example">
     <title>Un exemple simple</title>
 
-    <example>
-      # Cet exemple de configuration est invalide, ne l'utilisez pas comme base
-      # de configuration
-      &lt;VirtualHost www.example.dom&gt; <br />
-      ServerAdmin webgirl@example.dom <br />
-      DocumentRoot /www/example <br />
-      &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+# Ceci est un exemple de mauvaise configuration ; ne l'utilisez pas comme base
+# de configuration
+&lt;VirtualHost www.example.dom&gt;
+  ServerAdmin webgirl@example.dom
+  DocumentRoot /www/example
+&lt;/VirtualHost&gt;
+    </highlight>
 
     <p>Pour fonctionner correctement, le serveur a absolument besoin de deux
     informations &agrave; propos de chaque serveur virtuel : le nom du serveur
     <p>Supposons que l'adresse de <code>www.example.dom</code> soit
     192.0.2.1, et examinons cet extrait de configuration :</p>
 
-    <example>
-      # Cet exemple de configuration est invalide, ne l'utilisez pas comme base
-      # de configuration
-      &lt;VirtualHost 192.0.2.1&gt; <br />
-      ServerAdmin webgirl@example.dom <br />
-      DocumentRoot /www/example <br />
-      &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+# Ceci est un exemple de mauvaise configuration ; ne l'utilisez pas comme base
+# de configuration
+&lt;VirtualHost 192.0.2.1&gt;
+  ServerAdmin webgirl@example.dom
+  DocumentRoot /www/example
+&lt;/VirtualHost&gt;
+    </highlight>
 
     <p>Cette fois, httpd doit effectuer une recherche DNS inverse pour
     trouver le nom <code>ServerName</code> de ce serveur virtuel. Si
     <p>Voici un extrait de configuration qui permet d'&eacute;viter ces deux
     types de probl&egrave;mes :</p>
 
-    <example>
-      &lt;VirtualHost 192.0.2.1&gt; <br />
-      ServerName www.example.dom <br />
-      ServerAdmin webgirl@example.dom <br />
-      DocumentRoot /www/example <br />
-      &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+&lt;VirtualHost 192.0.2.1&gt;
+  ServerName www.example.dom
+  ServerAdmin webgirl@example.dom
+  DocumentRoot /www/example
+&lt;/VirtualHost&gt;
+    </highlight>
   </section>
 
   <section id="denial">
 
     <p>Consid&eacute;rons cet extrait de configuration :</p>
 
-    <example>
-      &lt;VirtualHost www.example1.dom&gt;<br />
-      <indent>
-        ServerAdmin webgirl@example1.dom<br />
-        DocumentRoot /www/example1<br />
-      </indent>
-      &lt;/VirtualHost&gt;<br />
-      <br />
-      &lt;VirtualHost www.example2.dom&gt;<br />
-      <indent>
-        ServerAdmin webguy@example2.dom<br />
-        DocumentRoot /www/example2<br />
-      </indent>
-      &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+&lt;VirtualHost www.example1.dom&gt;
+  ServerAdmin webgirl@example1.dom
+  DocumentRoot /www/example1
+&lt;/VirtualHost&gt;
+&lt;VirtualHost www.example2.dom&gt;
+  ServerAdmin webguy@example2.dom
+  DocumentRoot /www/example2
+&lt;/VirtualHost&gt;
+    </highlight>
 
     <p>Supposons que vous ayez assign&eacute; 192.0.2.1 &agrave;
     <code>www.example1.dom</code> et 192.0.2.2 &agrave; <code>www.example2.dom</code>. En
index 0202055cbc4920aa730b1b7cf5ba1d993a08e155..5079979ccd169ed992ec21c8a42bf4b680e0c4d8 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="ISO-8859-1" ?>
 <!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="./style/manual.fr.xsl"?>
-<!-- English Revision: 1307311:1334033 (outdated) -->
+<!-- English Revision : 1334033 -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
 
@@ -499,36 +499,31 @@ listfunction ::= listfuncname "<strong>(</strong>" word "<strong>)</strong>"
     module="mod_ssl">SSLRequire</directive>).</p>
 
 </section>
-
 <section id="examples">
     
        <title>Exemples d'expressions</title>
        <p>Les exemples suivants montent comment utiliser les
        expressions pour &eacute;valuer les requ&ecirc;tes :</p>
        <!-- This section should probably be extended with more, useful examples -->
-       <example>
-       # Comparer le nom d'h&ocirc;te avec example.com et rediriger vers
-       # www.example.com si le nom d'h&ocirc;te correspond<br />
-       &lt;If "%{HTTP_HOST} == 'example.com'"&gt;<br />
-       <indent>
-               Redirect permanent / http://www.example.com<br />
-       </indent>
-       &lt;/If&gt;<br /><br />
-       # Forcer le type text/plain si un fichier fait l'objet d'une
-       # requ&ecirc;te dont la cha&icirc;ne de param&egrave;tres contient 'forcetext'<br />
-       &lt;If "%{QUERY_STRING} =~ /forcetext/"&gt;<br />
-       <indent>
-               ForceType text/plain<br />
-       </indent>
-       &lt;/If&gt;<br /><br />
-       # N'autoriser l'acc&egrave;s &agrave; ce contenu que pendant les heures de
-       # travail<br />
-       &lt;Directory "/foo/bar/business"&gt;<br />
-       <indent>
-               Require expr %{TIME_HOUR} &gt;= 9 &amp;&amp; %{TIME_HOUR} &lt;= 17 <br />
-       </indent>
-       &lt;/Directory&gt;      
-       </example>
+       <highlight language="config">
+# Comparer le nom d'h&ocirc;te avec example.com et rediriger vers
+# www.example.com si le nom d'h&ocirc;te correspond
+&lt;If "%{HTTP_HOST} == 'example.com'"&gt;
+    Redirect permanent / http://www.example.com
+&lt;/If&gt;
+
+# Forcer le type text/plain si un fichier fait l'objet d'une
+# requ&ecirc;te dont la cha&icirc;ne de param&egrave;tres contient 'forcetext'
+&lt;If "%{QUERY_STRING} =~ /forcetext/"&gt;
+    ForceType text/plain
+&lt;/If&gt;
+
+# N'autoriser l'acc&egrave;s &agrave; ce contenu que pendant les heures de
+# travail
+&lt;Directory "/foo/bar/business"&gt;
+    Require expr %{TIME_HOUR} &gt;= 9 &amp;&amp; %{TIME_HOUR} &lt;= 17 
+&lt;/Directory&gt;     
+       </highlight>
 </section>
 
 <section id="other">
index c60c740547f725855a71fdda446a201d1cf3537e..15935e46dbaa6c8182bce1e9424f2213b7f7827b 100644 (file)
@@ -3,7 +3,7 @@
 <?xml-stylesheet type="text/xsl" href="./style/manual.fr.xsl"?>
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
-<!-- English Revision: 1174747:1334033 (outdated) -->
+<!-- English Revision : 1334033 -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
@@ -50,8 +50,7 @@
     </dd>
 
     <dt><a name="apr" id="apr">APR</a></dt>
-    <dd>Voir <a href="#apacheportableruntime">"
-    Biblioth&egrave;ques pour la portabilit&eacute; d'Apache"</a>
+    <dd>Voir "Biblioth&egrave;ques pour la portabilit&eacute; d'Apache"
     </dd>
 
     <dt><a name="tarball" id="tarball">Archive Tar (Tarball)</a></dt>
@@ -81,7 +80,8 @@
 
     <dt><a name="apacheportableruntime"
        id="apacheportableruntime">Biblioth&egrave;ques pour la portabilit&eacute; d'Apache
-       (Apache Portable Runtime, APR)</a></dt>
+       (Apache Portable Runtime)</a> <a
+       name="apr" id="apr">(APR)</a></dt>
     <dd>Un jeu de biblioth&egrave;ques qui fournit la plupart des interfaces de base
       entre le serveur et le syst&egrave;me d'exploitation.  APR est d&eacute;velopp&eacute;
       parall&egrave;lement au serveur HTTP Apache comme projet ind&eacute;pendant.<br />
index 319d3f594e6374618e95e0f688cb9522cfe6efcc..8df975a3f858e99b314912ca14ad64ce4e0f0f35 100644 (file)
@@ -3,7 +3,7 @@
 <?xml-stylesheet type="text/xsl" href="./style/manual.fr.xsl"?>
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
-<!-- English Revision: 1220529:1333447 (outdated) -->
+<!-- English Revision : 1333447 -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
@@ -90,6 +90,8 @@
     <page href="http://wiki.apache.org/httpd/FAQ">Foire Aux Questions</page>
     <page href="sitemap.html">Plan du site</page>
     <page href="developer/">Documentation du d&eacute;veloppeur</page>
+    <page href="http://httpd.apache.org/docs-project/">Aide pour la
+    documentation</page>
     <page href="misc/">Autres notes</page>
     <page href="http://wiki.apache.org/httpd/">Wiki</page>
 </category>
index 63b9fd3f73fa642b67db4804a1614416910953dd..1bd7f81cc0e1d702742af0bb6944f293ed0eddfb 100644 (file)
@@ -3,7 +3,7 @@
 <?xml-stylesheet type="text/xsl" href="./style/manual.fr.xsl"?>
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
-<!-- English Revision: 1300926:1334033 (outdated) -->
+<!-- English Revision : 1334033 -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
     <p>Pour ce faire, vous devez sp&eacute;cifier le nom du module dans votre
     directive <directive>LogLevel</directive> :</p>
 
-    <example>
+    <highlight language="config">
     LogLevel info rewrite:trace5
-    </example>
+    </highlight>
 
     <p>Dans cet exemple, le niveau de journalisation g&eacute;n&eacute;ral est d&eacute;fini
     &agrave; info, et &agrave; <code>trace5</code> pour <module>mod_rewrite</module>.</p>
 
       <p>Voici une configuration typique pour le journal des acc&egrave;s :</p>
 
-      <example>
-        LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common<br />
-         CustomLog logs/access_log common
-      </example>
+      <highlight language="config">
+LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common
+CustomLog logs/access_log common
+      </highlight>
 
       <p>Ici est d&eacute;finie l'<em>identit&eacute;</em> <code>common</code> qui est
       ensuite associ&eacute;e &agrave; une cha&icirc;ne de format de journalisation particuli&egrave;re.
       "Combined Log Format" (Format de journalisation combin&eacute;). Il s'utilise
       comme suit :</p>
 
-      <example>
-        LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\"
-        \"%{User-agent}i\"" combined<br />
-         CustomLog log/access_log combined
-      </example>
+      <highlight language="config">
+LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
+CustomLog log/access_log combined
+      </highlight>
 
       <p>Ce format est identique au Common Log Format, avec deux champs
       suppl&eacute;mentaires. Chacun de ces deux champs utilise la directive
       comment simuler les effets des directives <code>ReferLog</code> et
       <code>AgentLog</code>.</p>
 
-      <example>
-        LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common<br />
-        CustomLog logs/access_log common<br />
-        CustomLog logs/referer_log "%{Referer}i -&gt; %U"<br />
-        CustomLog logs/agent_log "%{User-agent}i"
-      </example>
+      <highlight language="config">
+LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common
+CustomLog logs/access_log common
+CustomLog logs/referer_log "%{Referer}i -&gt; %U"
+CustomLog logs/agent_log "%{User-agent}i"
+      </highlight>
 
       <p>Cet exemple montre aussi qu'il n'est pas obligatoire d'associer
       une cha&icirc;ne de format &agrave; un alias au moyen de la directive
       la variable d'environnement est d&eacute;finie.
       Quelques exemples :</p>
 
-      <example>
-        # Marque les requ&ecirc;tes en provenance de l'interface loop-back<br />
-        SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog<br />
-        # Marque les requ&ecirc;tes pour le fichier robots.txt<br />
-        SetEnvIf Request_URI "^/robots\.txt$" dontlog<br />
-        # Journalise toutes les autres requ&ecirc;tes<br />
-        CustomLog logs/access_log common env=!dontlog
-      </example>
+      <highlight language="config">
+# Marque les requ&ecirc;tes en provenance de l'interface loop-back
+SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
+# Marque les requ&ecirc;tes pour le fichier robots.txt
+SetEnvIf Request_URI "^/robots\.txt$" dontlog
+# Journalise toutes les autres requ&ecirc;tes
+CustomLog logs/access_log common env=!dontlog
+      </highlight>
 
       <p>Autre exemple, imaginons l'enregistrement des requ&ecirc;tes en provenance
       d'utilisateurs de langue anglaise dans un journal, et celles des autres
       utilisateurs dans un autre journal.</p>
 
-      <example>
+      <highlight language="config">
         SetEnvIf Accept-Language "en" english<br />
         CustomLog logs/english_log common env=english<br />
         CustomLog logs/non_english_log common env=!english
-      </example>
+      </highlight>
 
        <p>Dans le contexte d'une mise en cache, il peut &ecirc;tre
        int&eacute;ressant de conna&icirc;tre l'efficacit&eacute; du cache. Pour y parvenir,
        on pourrait utiliser cette m&eacute;thode simple :</p>
 
-      <example>
-        SetEnv CACHE_MISS 1<br />
-        LogFormat "%h %l %u %t "%r " %>s %b %{CACHE_MISS}e" common-cache<br />
-        CustomLog logs/access_log common-cache
-      </example>
+      <highlight language="config">
+SetEnv CACHE_MISS 1
+LogFormat "%h %l %u %t "%r " %>s %b %{CACHE_MISS}e" common-cache
+CustomLog logs/access_log common-cache
+      </highlight>
 
       <p><module>mod_cache</module> va s'ex&eacute;cuter avant
       <module>mod_env</module>, et si son action est couronn&eacute;e de
       valeurs de journalisation conditionnelles bas&eacute;es sur le code de la
       r&eacute;ponse HTTP :</p>
 
-      <example>
-      LogFormat "%400,501{User-agent}i" browserlog<br />
-      LogFormat "%!200,304,302{Referer}i" refererlog
-      </example>
+      <highlight language="config">
+LogFormat "%400,501{User-agent}i" browserlog
+LogFormat "%!200,304,302{Referer}i" refererlog
+      </highlight>
 
       <p>Dans le premier exemple, le <code>User-agent</code> sera
       enregistr&eacute; si le code d'&eacute;tat HTTP est 400 ou 501. Dans le cas
     appel&eacute; <program>rotatelogs</program>. Par exemple, pour une rotation des
     journaux toutes les 24 heures, ajoutez ces lignes :</p>
 
-    <example>
-      CustomLog "|/usr/local/apache/bin/rotatelogs
-      /var/log/access_log 86400" common
-    </example>
+    <highlight language="config">
+      CustomLog "|/usr/local/apache/bin/rotatelogs /var/log/access_log 86400" common
+    </highlight>
 
     <p>Notez que l'ensemble de la commande qui sera appel&eacute;e par le tube de
     communication a &eacute;t&eacute; plac&eacute;e entre guillemets. Bien que cet exemple
   au lieu de "<code>|</code>" (en g&eacute;n&eacute;ral avec <code>/bin/sh -c</code>)
   :</p>
 
-    <example>
-      # Invocation de "rotatelogs" en utilisant un shell<br />
-      CustomLog "|$/usr/local/apache/bin/rotatelogs
-      /var/log/access_log 86400" common
-    </example>
+    <highlight language="config">
+# Invocation de "rotatelogs" en utilisant un shell
+CustomLog "|$/usr/local/apache/bin/rotatelogs   /var/log/access_log 86400" common
+    </highlight>
+
 
     <p>Il s'agissait du comportement par d&eacute;faut sous Apache 2.2. Selon
     les sp&eacute;cificit&eacute;s du shell, ceci peut g&eacute;n&eacute;rer un processus shell
     journal, puis de s&eacute;parer ult&eacute;rieurement le journal en plusieurs journaux
     individuels. Consid&eacute;rons par exemple les directives suivantes :</p>
 
-    <example>
-      LogFormat "%v %l %u %t \"%r\" %&gt;s %b"
-      comonvhost<br />
-      CustomLog logs/access_log comonvhost
-    </example>
+    <highlight language="config">
+LogFormat "%v %l %u %t \"%r\" %&gt;s %b" comonvhost
+CustomLog logs/access_log comonvhost
+    </highlight>
 
     <p>Le champ <code>%v</code> sert &agrave; enregistrer le nom de l'h&ocirc;te virtuel qui
     traite la requ&ecirc;te. Un programme tel que <a
index 178770763f5c4e0304eeaf8f67257617f40e304b..bb18295a1d2637c6947d455d03f684290368653f 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1307835:1334022 (outdated) -->
+<!-- English Revision: 1334022 -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
 
index 49c8973a8f84a575b50a4226d9f71079a79943ab..e89f767f9b45752ed9919836e4c4f2e26604bba5 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='ISO-8859-1' ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1132802:1334000 (outdated) -->
+<!-- English Revision: 1334000 -->
 <!-- French translation by Vincent Deffontaines, Alain B., review by  -->
 <!-- updated by Lucien Gentis -->
 
     que sur la machine possédant ces entrées.</p>
     </note>
 
-    <example>
-    <title>Configuration du serveur</title>
-
-    # Apache doit écouter sur le port 80<br />
-    Listen 80<br />
-    <br />
-    <br />
-    &lt;VirtualHost *:80&gt;<br />
-    <indent>
-      DocumentRoot /www/example.com<br />
-      ServerName www.example1.com<br />
-      <br />
-      # Autres directives ici<br />
-      <br />
-    </indent>
-    &lt;/VirtualHost&gt;<br />
-    <br />
-    &lt;VirtualHost *:80&gt;<br />
-    <indent>
-      DocumentRoot /www/example.org<br />
-      ServerName www.example2.org<br />
-      <br />
-      # Autres directives ici<br />
-      <br />
-    </indent>
-    &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+# Apache doit écouter sur le port 80
+Listen 80
+&lt;VirtualHost *:80&gt;
+    DocumentRoot /www/example1
+    ServerName www.example.com
+  
+    # Autres directives ici
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost *:80&gt;
+    DocumentRoot /www/example2
+    ServerName www.example.org
+
+    # Autres directives ici
+&lt;/VirtualHost&gt;
+    </highlight>
+   
 
     <p>Les astérisques correspondent à toutes les adresses, si bien que 
     le serveur principal ne répondra jamais à aucune requête. Comme le
     (<code>172.20.30.50</code>), deux serveurs virtuels (ou plus) 
     répondront.</p>
 
-    <example>
-    <title>Configuration du serveur</title>
-
-    Listen 80<br />
-        <br />
-    # Serveur "principal" sur 172.20.30.40<br />
-    ServerName server.example.com<br />
-    DocumentRoot /www/mainserver<br />
-        <br />
-    &lt;VirtualHost 172.20.30.50&gt;<br />
-    <indent>
-        DocumentRoot /www/example.com<br />
-        ServerName www.example.com<br />
-               <br />
-        # D'autres directives ici ...<br />
-                   <br />
-    </indent>
-    &lt;/VirtualHost&gt;<br />
-        <br />
-    &lt;VirtualHost 172.20.30.50&gt;<br />
-    <indent>
-        DocumentRoot /www/example.org<br />
-        ServerName www.example.org<br />
-                <br />
-        # D'autres directives ici ...<br />
-                <br />
-    </indent>
-    &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+Listen 80
+
+# Serveur "principal" sur 172.20.30.40
+ServerName server.example.com
+DocumentRoot /www/mainserver
+
+&lt;VirtualHost 172.20.30.50&gt;
+    DocumentRoot /www/example1
+    ServerName www.example.com
+    
+    # D'autres directives ici ...
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost 172.20.30.50&gt;
+    DocumentRoot /www/example2
+    ServerName www.example.org
+    
+    # D'autres directives ici ...
+&lt;/VirtualHost&gt;
+    </highlight>
 
     <p>Toute requête arrivant sur une autre adresse que 
     <code>172.20.30.50</code> sera servie par le serveur principal. 
     aux requêtes internes et externes, au moyen d'une seule section 
     <code>VirtualHost</code>.</p>
 
-    <example>
-    <title>Configuration du serveur</title>
-
-    <br />
-    &lt;VirtualHost 192.168.1.1 172.20.30.40&gt;<br />
-    <indent>
-        DocumentRoot /www/server1<br />
-        ServerName server.example.com<br />
-        ServerAlias server<br />
-    </indent>
-    &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+&lt;VirtualHost 192.168.1.1 172.20.30.40&gt;
+    DocumentRoot /www/server1
+    ServerName server.example.com
+    ServerAlias server
+&lt;/VirtualHost&gt;
+    </highlight>
 
     <p>Ainsi, les requêtes en provenance de chacun des deux réseaux 
     seront servies par le même <code>VirtualHost</code>.</p>
     la sélection de la meilleure correspondance du point de vue adresse
     IP/port.</p>
 
-    <example>
-    <title>Configuration du serveur</title>
-
-    Listen 80<br />
-    Listen 8080<br />
-               <br />
-    &lt;VirtualHost 172.20.30.40:80&gt;<br />
-    <indent>
-        ServerName www.example.com<br />
-        DocumentRoot /www/domain-80<br />
-    </indent>
-    &lt;/VirtualHost&gt;<br />
-               <br />
-    &lt;VirtualHost 172.20.30.40:8080&gt;<br />
-    <indent>
-        ServerName www.example.com<br />
-        DocumentRoot /www/domain-8080<br />
-    </indent>
-    &lt;/VirtualHost&gt;<br />
-               <br />
-    &lt;VirtualHost 172.20.30.40:80&gt;<br />
-    <indent>
-        ServerName www.example.org<br />
-        DocumentRoot /www/otherdomain-80<br />
-    </indent>
-    &lt;/VirtualHost&gt;<br />
-               <br />
-    &lt;VirtualHost 172.20.30.40:8080&gt;<br />
-    <indent>
-        ServerName www.example.org<br />
-        DocumentRoot /www/otherdomain-8080<br />
-    </indent>
-    &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+Listen 80
+Listen 8080
+
+&lt;VirtualHost 172.20.30.40:80&gt;
+    ServerName www.example.com
+    DocumentRoot /www/domain-80
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost 172.20.30.40:8080&gt;
+    ServerName www.example.com
+    DocumentRoot /www/domain-8080
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost 172.20.30.40:80&gt;
+    ServerName www.example.org
+    DocumentRoot /www/otherdomain-80
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost 172.20.30.40:8080&gt;
+    ServerName www.example.org
+    DocumentRoot /www/otherdomain-8080
+&lt;/VirtualHost&gt;
+    </highlight>
 
        </section>
 
     et <code>172.20.30.50</code>) correspondant respectivement aux noms 
     <code>www.example.com</code> et <code>www.example.org</code>.</p>
 
-    <example>
-    <title>Configuration du serveur</title>
-
-    Listen 80<br />
-               <br />
-    &lt;VirtualHost 172.20.30.40&gt;<br />
-    <indent>
-        DocumentRoot /www/example.com<br />
-        ServerName www.example1.com<br />
-    </indent>
-    &lt;/VirtualHost&gt;<br />
-               <br />
-    &lt;VirtualHost 172.20.30.50&gt;<br />
-    <indent>
-        DocumentRoot /www/example.org<br />
-        ServerName www.example2.org<br />
-    </indent>
-    &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+Listen 80
+
+&lt;VirtualHost 172.20.30.40&gt;
+    DocumentRoot /www/example1
+    ServerName www.example.com
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost 172.20.30.50&gt;
+    DocumentRoot /www/example2
+    ServerName www.example.org
+&lt;/VirtualHost&gt;
+    </highlight>
 
     <p>Les requêtes provenant d'adresses non spécifiées dans l'une des 
     directives <code>&lt;VirtualHost&gt;</code> (comme pour 
     Pour chacun d'eux, nous voulons un hébergement sur les ports 80 
     et 8080.</p>
 
-    <example>
-    <title>Configuration du serveur</title>
-
-    Listen 172.20.30.40:80<br />
-    Listen 172.20.30.40:8080<br />
-    Listen 172.20.30.50:80<br />
-    Listen 172.20.30.50:8080<br />
-               <br />
-    &lt;VirtualHost 172.20.30.40:80&gt;<br />
-    <indent>
-        DocumentRoot /www/example.com-80<br />
-        ServerName www.example.com<br />
-    </indent>
-    &lt;/VirtualHost&gt;<br />
-               <br />
-    &lt;VirtualHost 172.20.30.40:8080&gt;<br />
-    <indent>
-        DocumentRoot /www/example.com-8080<br />
-        ServerName www.example.com<br />
-               </indent>
-    &lt;/VirtualHost&gt;<br />
-               <br />
-    &lt;VirtualHost 172.20.30.50:80&gt;<br />
-    <indent>
-        DocumentRoot /www/example.org-80<br />
-        ServerName www.example.org<br />
-    </indent>
-    &lt;/VirtualHost&gt;<br />
-               <br />
-    &lt;VirtualHost 172.20.30.50:8080&gt;<br />
-    <indent>
-        DocumentRoot /www/example.org-8080<br />
-        ServerName www.example.org<br />
-    </indent>
-    &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+Listen 172.20.30.40:80
+Listen 172.20.30.40:8080
+Listen 172.20.30.50:80
+Listen 172.20.30.50:8080
+
+&lt;VirtualHost 172.20.30.40:80&gt;
+    DocumentRoot /www/example1-80
+    ServerName www.example.com
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost 172.20.30.40:8080&gt;
+    DocumentRoot /www/example1-8080
+    ServerName www.example.com
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost 172.20.30.50:80&gt;
+    DocumentRoot /www/example2-80
+    ServerName www.example.org
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost 172.20.30.50:8080&gt;
+    DocumentRoot /www/example2-8080
+    ServerName www.example.org
+&lt;/VirtualHost&gt;
+    </highlight>
 
        </section>
 
     section un serveur virtuel sélectionnable uniquement en fonction de
     son adresse IP.</p>
 
-    <example>
-    <title>Configuration du serveur</title>
-
-    Listen 80<br />
-    &lt;VirtualHost 172.20.30.40&gt;<br />
-    <indent>
-        DocumentRoot /www/example1<br />
-        ServerName www.example.com<br />
-    </indent>
-    &lt;/VirtualHost&gt;<br />
-               <br />
-    &lt;VirtualHost 172.20.30.40&gt;<br />
-    <indent>
-        DocumentRoot /www/example2<br />
-        ServerName www.example.org<br />
-    </indent>
-    &lt;/VirtualHost&gt;<br />
-               <br />
-    &lt;VirtualHost 172.20.30.40&gt;<br />
-    <indent>
-        DocumentRoot /www/example3<br />
-        ServerName www.example.net<br />
-    </indent>
-    &lt;/VirtualHost&gt;<br />
-               <br />
-    # "par-IP"<br />
-    &lt;VirtualHost 172.20.30.50&gt;<br />
-    <indent>
-        DocumentRoot /www/example4<br />
-        ServerName www.example.edu<br />
-    </indent>
-    &lt;/VirtualHost&gt;<br />
-               <br />
-    &lt;VirtualHost 172.20.30.60&gt;<br />
-    <indent>
-        DocumentRoot /www/example5<br />
-        ServerName www.example.gov<br />
-    </indent>
-    &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+Listen 80
+&lt;VirtualHost 172.20.30.40&gt;
+    DocumentRoot /www/example1
+    ServerName www.example.com
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost 172.20.30.40&gt;
+    DocumentRoot /www/example2
+    ServerName www.example.org
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost 172.20.30.40&gt;
+    DocumentRoot /www/example3
+    ServerName www.example.net
+&lt;/VirtualHost&gt;
+
+# IP-based
+&lt;VirtualHost 172.20.30.50&gt;
+    DocumentRoot /www/example4
+    ServerName www.example.edu
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost 172.20.30.60&gt;
+    DocumentRoot /www/example5
+    ServerName www.example.gov
+&lt;/VirtualHost&gt;
+    </highlight>
 
        </section>
 
     transfert, au cas où plusieurs noms de domaines cohabitent sur 
     une même machine.</p>
 
-    <example>
-    &lt;VirtualHost *:*&gt;<br />
-        ProxyPreserveHost On<br />
-        ProxyPass / http://192.168.111.2<br />
-        ProxyPassReverse / http://192.168.111.2/<br />
-        ServerName hostname.example.com<br />
-    &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+&lt;VirtualHost *:*&gt;
+    ProxyPreserveHost On
+    ProxyPass / http://192.168.111.2/
+    ProxyPassReverse / http://192.168.111.2/
+    ServerName hostname.example.com
+&lt;/VirtualHost&gt;
+    </highlight>
 
     </section>
 
     d'adresses IP ou de ports non connus, <em>c'est-à-dire</em>, d'un 
     couple adresse/port non traité par aucun autre serveur virtuel.</p>
 
-    <example>
-    <title>Configuration du serveur</title>
-
-    &lt;VirtualHost _default_:*&gt;<br />
-    <indent>
-        DocumentRoot /www/default<br />
-    </indent>
-    &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+&lt;VirtualHost _default_:*&gt;
+    DocumentRoot /www/default
+&lt;/VirtualHost&gt;
+    </highlight>
 
     <p>L'utilisation d'un tel serveur virtuel avec un joker pour le 
     port empêche de manière efficace qu'une requête n'atteigne le 
     le serveur écoute sur plusieurs ports et un second serveur virtuel 
     <code>_default_</code> pour le port 80 est ajouté.</p>
 
-    <example>
-    <title>Configuration du serveur</title>
-
-    &lt;VirtualHost _default_:80&gt;<br />
-    <indent>
-        DocumentRoot /www/default80<br />
-        # ...<br />
-    </indent>
-    &lt;/VirtualHost&gt;<br />
-               <br />
-    &lt;VirtualHost _default_:*&gt;<br />
-    <indent>
-        DocumentRoot /www/default<br />
-        # ...<br />
-    </indent>
-    &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+&lt;VirtualHost _default_:80&gt;
+    DocumentRoot /www/default80
+    # ...
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost _default_:*&gt;
+    DocumentRoot /www/default
+    # ...
+&lt;/VirtualHost&gt;
+    </highlight>
 
     <p>Le serveur virtuel par défaut défini pour le port 80 (il doit 
     impérativement être placé avant un autre serveur virtuel par 
     <p>Nous voulons créer un serveur virtuel par défaut seulement 
     pour le port 80.</p>
 
-    <example>
-    <title>Configuration du serveur</title>
-
-    &lt;VirtualHost _default_:80&gt;<br />
-    DocumentRoot /www/default<br />
-    ...<br />
-    &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+&lt;VirtualHost _default_:80&gt;
+DocumentRoot /www/default
+...
+&lt;/VirtualHost&gt;
+    </highlight>
 
     <p>Une requête vers une adresse non spécifiée sur le port 80 
     sera servie par le serveur virtuel par défaut, et toute autre 
     adresse IP (<code>172.20.30.50</code>) dans la directive 
     <code>VirtualHost</code>.</p>
 
-    <example>
-    <title>Configuration du serveur</title>
-
-    Listen 80<br />
-    ServerName www.example.com<br />
-    DocumentRoot /www/example.com<br />
-               <br />
-    &lt;VirtualHost 172.20.30.40 172.20.30.50&gt;<br />
-    <indent>
-        DocumentRoot /www/example.org<br />
-        ServerName www.example.org<br />
-        # ...<br />
-    </indent>
-    &lt;/VirtualHost&gt;<br />
-               <br />
-    &lt;VirtualHost 172.20.30.40&gt;<br />
-    <indent>
-        DocumentRoot /www/example.net<br />
-        ServerName www.example.net<br />
-        ServerAlias *.example.net<br />
-        # ...<br />
-    </indent>
-    &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+Listen 80
+ServerName www.example.com
+DocumentRoot /www/example1
+
+&lt;VirtualHost 172.20.30.40 172.20.30.50&gt;
+    DocumentRoot /www/example2
+    ServerName www.example.org
+    # ...
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost 172.20.30.40&gt;
+    DocumentRoot /www/example3
+    ServerName www.example.net
+    ServerAlias *.example.net
+    # ...
+&lt;/VirtualHost&gt;
+    </highlight>
 
     <p>Le serveur virtuel peut maintenant être joint par la nouvelle 
     adresse (comme un serveur virtuel par IP) et par l'ancienne 
     des liens dont les URLs auront un préfixe identifiant les serveurs 
     virtuels par nom.</p>
 
-    <example>
-    <title>Configuration du serveur</title>
-
-    &lt;VirtualHost 172.20.30.40&gt;<br />
-    <indent>
-        # Serveur virtuel primaire<br />
-        DocumentRoot /www/subdomain<br />
-        RewriteEngine On<br />
-        RewriteRule . /www/subdomain/index.html<br />
-        # ...<br />
-    </indent>
-    &lt;/VirtualHost&gt;<br />
-               <br />
-    &lt;VirtualHost 172.20.30.40&gt;<br />
-    DocumentRoot /www/subdomain/sub1<br />
-    <indent>
-        ServerName www.sub1.domain.tld<br />
-        ServerPath /sub1/<br />
-        RewriteEngine On<br />
-        RewriteRule ^(/sub1/.*) /www/subdomain$1<br />
-        # ...<br />
-    </indent>
-    &lt;/VirtualHost&gt;<br />
-               <br />
-    &lt;VirtualHost 172.20.30.40&gt;<br />
-    <indent>
-        DocumentRoot /www/subdomain/sub2<br />
-        ServerName www.sub2.domain.tld<br />
-        ServerPath /sub2/<br />
-        RewriteEngine On<br />
-        RewriteRule ^(/sub2/.*) /www/subdomain$1<br />
-        # ...<br />
-    </indent>
-    &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+&lt;VirtualHost 172.20.30.40&gt;
+    # serveur virtuel primaire
+    DocumentRoot /www/subdomain
+    RewriteEngine On
+    RewriteRule . /www/subdomain/index.html
+    # ...
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost 172.20.30.40&gt;
+DocumentRoot /www/subdomain/sub1
+    ServerName www.sub1.domain.tld
+    ServerPath /sub1/
+    RewriteEngine On
+    RewriteRule ^(/sub1/.*) /www/subdomain$1
+    # ...
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost 172.20.30.40&gt;
+    DocumentRoot /www/subdomain/sub2
+    ServerName www.sub2.domain.tld
+    ServerPath /sub2/
+    RewriteEngine On
+    RewriteRule ^(/sub2/.*) /www/subdomain$1
+    # ...
+&lt;/VirtualHost&gt;
+    </highlight>
 
     <p>À cause de la directive 
     <directive module="core">ServerPath</directive>, une requête sur 
index 75fb88bb94262e1165adec10a9a31c0d788090d7..6eb6f751fae996109268fcede626cc5bde0a8507 100644 (file)
@@ -1,8 +1,9 @@
 <?xml version='1.0' encoding='ISO-8859-1' ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1174747:1334000 (outdated) -->
+<!-- English Revision : 1334000 -->
 <!-- French translation by Vincent Deffontaines, review by alain B -->
+<!-- Updated by Lucien Gentis -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
@@ -106,10 +107,10 @@ entr
 variable <code>%v</code>. Ajoutez cette variable au début de la chaîne
 de définition du format de journalisations&nbsp;:</p>
 
-<example>
-LogFormat "%v %h %l %u %t \"%r\" %&gt;s %b" vhost<br />
+<highlight language="config">
+LogFormat "%v %h %l %u %t \"%r\" %&gt;s %b" vhost
 CustomLog logs/multiple_vhost_log vhost
-</example>
+</highlight>
 
 <p>Cette configuration va provoquer la création d'un fichier de
 journalisation au format standard (CLF&nbsp;: 'Common Log Format'), mais dont
index 3babaef437b6dab6fb21168f7a2f16908d9496d0..cf620f654ec77eb40b704acfb61f6b70b80e5bd0 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='ISO-8859-1' ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1301400:1334408 (outdated) -->
+<!-- English Revision: 1334408 -->
 <!-- French translation by alain B, review by Vincent Deffontaines 
        updated by Lucien GENTIS -->
 
@@ -154,23 +154,20 @@ virtuel bas
     la même adresse IP. Il vous suffit d'ajouter la configuration 
     suivante à <code>httpd.conf</code>&nbsp;:</p>
 
-    <example>
-        &lt;VirtualHost *:80&gt;<br />
-        <indent>
-            # Le premier serveur virtuel de la liste est aussi le
-           # serveur par défaut pour *:80
-            ServerName www.example.com<br />
-            ServerAlias example.com <br />
-            DocumentRoot /www/domain<br />
-        </indent>
-        &lt;/VirtualHost&gt;<br />
-        <br />
-        &lt;VirtualHost *:80&gt;<br />
-        <indent>ServerName other.example.com<br />
-            DocumentRoot /www/otherdomain<br />
-        </indent>
-        &lt;/VirtualHost&gt;<br />
-    </example>
+    <highlight language="config">
+&lt;VirtualHost *:80&gt;
+    # Le premier serveur virtuel de la liste est aussi le
+    # serveur par défaut pour *:80
+    ServerName www.example.com
+    ServerAlias example.com 
+    DocumentRoot /www/domain
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost *:80&gt;
+    ServerName other.example.com
+    DocumentRoot /www/otherdomain
+&lt;/VirtualHost&gt;
+    </highlight>
 
     <p>Autrement, vous pouvez spécifiez une adresse IP explicite 
     à la place de <code>*</code> dans la directive
@@ -190,9 +187,9 @@ virtuel bas
     indique aux utilisateurs les autres noms permis pour accéder au 
     même site Web&nbsp;:</p>
 
-    <example>
+    <highlight language="config">
         ServerAlias example.com *.example.com
-    </example>
+    </highlight>
 
     <p>ainsi, toutes les requêtes portant sur un domaine 
     <code>example.com</code> seront servies par le serveur virtuel