You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by lg...@apache.org on 2015/05/10 18:56:41 UTC
svn commit: r1678579 - in /httpd/httpd/trunk/docs/manual:
mod/mod_auth_basic.xml.fr mod/mod_dav.xml.fr mod/mod_lua.xml.fr
rewrite/intro.xml.fr rewrite/tech.xml.fr
Author: lgentis
Date: Sun May 10 16:56:41 2015
New Revision: 1678579
URL: http://svn.apache.org/r1678579
Log:
XML updates.
Modified:
httpd/httpd/trunk/docs/manual/mod/mod_auth_basic.xml.fr
httpd/httpd/trunk/docs/manual/mod/mod_dav.xml.fr
httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr
httpd/httpd/trunk/docs/manual/rewrite/intro.xml.fr
httpd/httpd/trunk/docs/manual/rewrite/tech.xml.fr
Modified: httpd/httpd/trunk/docs/manual/mod/mod_auth_basic.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_auth_basic.xml.fr?rev=1678579&r1=1678578&r2=1678579&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_auth_basic.xml.fr (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_auth_basic.xml.fr Sun May 10 16:56:41 2015
@@ -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: 1659902:1673582 (outdated) -->
+<!-- English Revision: 1673582 -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
@@ -68,12 +68,12 @@ cette zone du site web</description>
<example><title>Exemple</title>
<highlight language="config">
-<Location /secure>
+<Location "/secure">
AuthType basic
AuthName "private area"
AuthBasicProvider dbm
AuthDBMType SDBM
- AuthDBMUserFile /www/etc/dbmpasswd
+ AuthDBMUserFile "/www/etc/dbmpasswd"
Require valid-user
</Location>
</highlight>
@@ -153,7 +153,7 @@ Apache</compatibility>
<example><title>Exemple de transmission d'un nom d'utilisateur et
d'un mot de passe prédéfinis</title>
<highlight language="config">
-<Location /demo>
+<Location "/demo">
AuthBasicFake demo demopass
</Location>
</highlight>
@@ -168,8 +168,8 @@ Apache</compatibility>
<example><title>Exemple d'utilisation avec un certificat</title>
<highlight language="config">
-<Location /secure>
- AuthBasicFake %{SSL_CLIENT_S_DN_Email}
+<Location "/secure">
+ AuthBasicFake "%{SSL_CLIENT_S_DN_Email}"
</Location>
</highlight>
</example>
@@ -184,15 +184,15 @@ Apache</compatibility>
<example><title>Exemple de génération de mot de passe par hashage de
l'adresse email</title>
<highlight language="config">
-<Location /secure>
- AuthBasicFake %{SSL_CLIENT_S_DN_Email} %{sha1:passphrase-%{SSL_CLIENT_S_DN_Email}}
+<Location "/secure">
+ AuthBasicFake "%{SSL_CLIENT_S_DN_Email}" "%{sha1:passphrase-%{SSL_CLIENT_S_DN_Email}}"
</Location>
</highlight>
</example>
<example><title>Désactivation de l'authentification simulée</title>
<highlight language="config">
-<Location /public>
+<Location "/public">
AuthBasicFake off
</Location>
</highlight>
Modified: httpd/httpd/trunk/docs/manual/mod/mod_dav.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_dav.xml.fr?rev=1678579&r1=1678578&r2=1678579&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_dav.xml.fr (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_dav.xml.fr Sun May 10 16:56:41 2015
@@ -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: 1628084:1673582 (outdated) -->
+<!-- English Revision: 1673582 -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
@@ -63,7 +63,7 @@ href="http://www.webdav.org/">WebDAV</a>
votre fichier <code>httpd.conf</code> :</p>
<highlight language="config">
- DavLockDB /usr/local/apache2/var/DavLock
+ DavLockDB "/usr/local/apache2/var/DavLock"
</highlight>
<p>Le répertoire contenant le fichier de la base de données des
@@ -84,15 +84,15 @@ href="http://www.webdav.org/">WebDAV</a>
<example><title>Exemple complet</title>
<highlight language="config">
-DavLockDB /usr/local/apache2/var/DavLock
+DavLockDB "/usr/local/apache2/var/DavLock"
-<Directory /usr/local/apache2/htdocs/foo>
+<Directory "/usr/local/apache2/htdocs/foo">
Require all granted
Dav On
AuthType Basic
- AuthName DAV
- AuthUserFile user.passwd
+ AuthName "DAV"
+ AuthUserFile "user.passwd"
<LimitExcept GET POST OPTIONS>
Require user admin
@@ -163,9 +163,9 @@ DavLockDB /usr/local/apache2/var/DavLock
le manipuler avec DAV.</p>
<highlight language="config">
-Alias /phparea /home/gstein/php_files
-Alias /php-source /home/gstein/php_files
-<Location /php-source>
+Alias "/phparea" "/home/gstein/php_files"
+Alias "/php-source" "/home/gstein/php_files"
+<Location "/php-source">
Dav On
ForceType text/plain
</Location>
@@ -190,7 +190,7 @@ ForceType text/plain
méthodes HTTP WebDAV pour le conteneur condidéré :</p>
<highlight language="config">
-<Location /foo>
+<Location "/foo">
Dav On
</Location>
</highlight>
@@ -237,7 +237,7 @@ verrou sur une ressource DAV</descriptio
<example><title>Exemple</title>
<highlight language="config">
-<Location /MSWord>
+<Location "/MSWord">
DavMinTimeout 600
</Location>
</highlight>
Modified: httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr?rev=1678579&r1=1678578&r2=1678579&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr Sun May 10 16:56:41 2015
@@ -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: 1641661:1673945 (outdated) -->
+<!-- English Revision: 1673945 -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
@@ -78,7 +78,7 @@ fonctionnement interne de httpd.</p>
module="mod_mime">AddHandler</directive> :</p>
<highlight language="config">
-<Files *.lua>
+<Files "*.lua">
SetHandler lua-script
</Files>
</highlight>
@@ -203,7 +203,7 @@ end
fournisseur <code>foo</code>, et la configure por l'URL <code>/</code> :</p>
<highlight language="config">
LuaAuthzProvider foo authz_provider.lua authz_check_foo
-<Location />
+<Location "/">
Require foo 10.1.2.3 john_doe
</Location>
</highlight>
@@ -1786,7 +1786,29 @@ traitement de la requête</descript
<context>directory</context><context>.htaccess</context>
</contextlist>
<override>All</override>
- <usage><p>...</p></usage>
+ <usage><p>
+ Cette directive fournit un point d'entrée pour la phase
+ type_checker du traitement de la requête. Cette phase
+ correspond au moment où la requête se voit assigner un type et un
+ gestionnaire de contenu, et peut donc être utilisée pour modifier le
+ type et le gestionnaire en fonction de l'entrée :
+ </p>
+ <highlight language="config">
+ LuaHookTypeChecker "/path/to/lua/script.lua" type_checker
+ </highlight>
+ <highlight language="lua">
+ function type_checker(r)
+ if r.uri:match("%.to_gif$") then -- foo.png.to_gif convient
+ r.content_type = "image/gif" -- affectation du type image/gif
+ r.handler = "gifWizard" -- force le traitement de la requête par le module gifWizard
+ r.filename = r.uri:gsub("%.to_gif$", "") -- corrige le nom du fichier demandé
+ return apache2.OK
+ end
+
+ return apache2.DECLINED
+ end
+ </highlight>
+ </usage>
</directivesynopsis>
<directivesynopsis>
@@ -1947,7 +1969,7 @@ module="mod_authz_core">Require</directi
<highlight language="config">
LuaRoot /usr/local/apache2/lua
LuaAuthzProvider foo authz.lua authz_check_foo
-<Location />
+<Location "/">
Require foo johndoe
</Location>
</highlight>
@@ -1983,7 +2005,7 @@ sont transmis au script Lua :
<highlight language="config">
LuaInputFilter myInputFilter /www/filter.lua input_filter
-<Files *.lua>
+<Files "*.lua">
SetInputFilter myInputFilter
</Files>
</highlight>
@@ -2045,7 +2067,7 @@ sont transmis au script Lua :
<highlight language="config">
LuaOutputFilter myOutputFilter /www/filter.lua output_filter
-<Files *.lua>
+<Files "*.lua">
SetOutputFilter myOutputFilter
</Files>
</highlight>
Modified: httpd/httpd/trunk/docs/manual/rewrite/intro.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/intro.xml.fr?rev=1678579&r1=1678578&r2=1678579&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/rewrite/intro.xml.fr (original)
+++ httpd/httpd/trunk/docs/manual/rewrite/intro.xml.fr Sun May 10 16:56:41 2015
@@ -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: 1654831:1673945 (outdated) -->
+<!-- English Revision: 1673945 -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
@@ -242,7 +242,7 @@ trois types :</p>
<dt>Un chemin complet du système de fichiers vers une ressource</dt>
<dd>
<highlight language="config">
-RewriteRule ^/jeux /usr/local/jeux/web
+RewriteRule "^/jeux" "/usr/local/jeux/web"
</highlight>
<p>Ceci peut faire correspondre une requête à toute localisation voulue de
votre système de fichiers, un peu comme la directive <directive
@@ -252,7 +252,7 @@ module="mod_alias">Alias</directive>.</p
<dt>Un chemin web vers une ressource</dt>
<dd>
<highlight language="config">
-RewriteRule ^/foo$ /bar
+RewriteRule "^/foo$" "/bar"
</highlight>
<p>Si la directive <directive module="core">DocumentRoot</directive> a
pour valeur <code>/usr/local/apache2/htdocs</code>, cette règle va faire
@@ -263,7 +263,7 @@ chemin <code>/usr/local/apache2/htdocs/b
<dt>Une URL absolue</dt>
<dd>
<highlight language="config">
-RewriteRule ^/produits/vues$ http://site2.example.com/voirproduits.html [R]
+RewriteRule "^/produits/vues$" "http://site2.example.com/voirproduits.html" [R]
</highlight>
<p>Ceci informe le client qu'il doit effectuer une nouvelle requête vers
l'URL spécifiée.</p>
@@ -274,7 +274,7 @@ l'URL spécifiée.</p>
<em>références arrières</em> vers des parties du chemin d'URL entrant
correspondant au <var>Modèle</var>. Considérons ce qui suit :</p>
<highlight language="config">
-RewriteRule ^/produits/(.*)/view$ /var/web/produitsdb/$1
+RewriteRule "^/produits/(.*)/view$" "/var/web/produitsdb/$1"
</highlight>
<p>La variable <code>$1</code> sera remplacée par tout texte
correspondant à l'expression située entre les parenthèses dans le
@@ -297,7 +297,7 @@ conditions de correspondance d'une r&egr
insensibles à la casse par la présence du drapeau <code>[NC]</code> :
</p>
<highlight language="config">
-RewriteRule ^puppy.html petitchien.html [NC]
+RewriteRule "^puppy.html" "petitchien.html" [NC]
</highlight>
<p>Pour une liste des drapeaux disponibles, leurs significations, et des
@@ -329,8 +329,8 @@ correspondance est évaluée
certaine tranche d'adresses IP vers un autre serveur, vous pouvez
utiliser :</p>
<highlight language="config">
-RewriteCond %{REMOTE_ADDR} ^10\.2\.
-RewriteRule (.*) http://intranet.example.com$1
+RewriteCond "%{REMOTE_ADDR}" "^10\.2\."
+RewriteRule "(.*)" "http://intranet.example.com$1"
</highlight>
<p>Si vous spécifiez plus d'une directive <directive
@@ -341,9 +341,9 @@ pour interdire les requêtes qui co
de requête, sauf si elles contiennent aussi un cookie contenant le mot
"go", vous pouvez utiliser :</p>
<highlight language="config">
-RewriteCond %{QUERY_STRING} hack
-RewriteCond %{HTTP_COOKIE} !go
-RewriteRule . - [F]
+RewriteCond "%{QUERY_STRING}" "hack"
+RewriteCond "%{HTTP_COOKIE}" "!go"
+RewriteRule "." "-" [F]
</highlight>
<p>Notez que le point d'exclamation indique une correspondance négative
; ainsi, la règle n'est appliquée que si le cookie ne contient pas "go"</p>
@@ -356,8 +356,8 @@ les variables <code>%1</code>, <code>%2<
exemple, ce qui suit va diriger la requête vers un répertoire différent
en fonction du nom d'hôte utilisé pour accéder au site :</p>
<highlight language="config">
-RewriteCond %{HTTP_HOST} (.*)
-RewriteRule ^/(.*) /sites/%1/$1
+RewriteCond "%{HTTP_HOST}" "(.*)"
+RewriteRule "^/(.*)" "/sites/%1/$1"
</highlight>
<p>Si la requête concernait <code>http://example.com/foo/bar</code>,
alors <code>%1</code> contiendrait <code>example.com</code> et
Modified: httpd/httpd/trunk/docs/manual/rewrite/tech.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/tech.xml.fr?rev=1678579&r1=1678578&r2=1678579&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/rewrite/tech.xml.fr (original)
+++ httpd/httpd/trunk/docs/manual/rewrite/tech.xml.fr Sun May 10 16:56:41 2015
@@ -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: 1533275:1673945 (outdated) -->
+<!-- English Revision: 1673945 -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
@@ -125,17 +125,17 @@ correspondance</a></seealso>
<tr>
<td>Section VirtualHost</td>
- <td>RewriteRule ^/images/(.+)\.jpg /images/$1.gif</td>
+ <td>RewriteRule "^/images/(.+)\.jpg" "/images/$1.gif"</td>
</tr>
<tr>
<td>Fichier .htaccess à la racine des documents</td>
- <td>RewriteRule ^images/(.+)\.jpg images/$1.gif</td>
+ <td>RewriteRule "^images/(.+)\.jpg" "images/$1.gif"</td>
</tr>
<tr>
<td>Fichier .htaccess dans le répertoire images</td>
- <td>RewriteRule ^(.+)\.jpg $1.gif</td>
+ <td>RewriteRule "^(.+)\.jpg" "$1.gif"</td>
</tr>
</table>