<?xml version="1.0"?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1437838:1673563 (outdated) -->
+<!-- English Revision : 1673563 -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
<highlight language="config">
# Files of a particular file extension
AddHandler my-file-type .xyz
-Action my-file-type /cgi-bin/program.cgi
+Action my-file-type "/cgi-bin/program.cgi"
</highlight>
</example>
<p>Dans cet exemple, les requêtes pour des fichiers possédant
virtuelles.</p>
<highlight language="config">
-<Location /news>
+<Location "/news">
SetHandler news-handler
- Action news-handler /cgi-bin/news.cgi virtual
+ Action news-handler "/cgi-bin/news.cgi" virtual
</Location>
</highlight>
</usage>
<highlight language="config">
# All GET requests go here
-Script GET /cgi-bin/search
+Script GET "/cgi-bin/search"
# A CGI PUT handler
-Script PUT /~bob/put.cgi
+Script PUT "/~bob/put.cgi"
</highlight>
</usage>
</directivesynopsis>
<?xml version="1.0"?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1663259:1673563 (outdated) -->
+<!-- English Revision : 1673563 -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
éventuellement s'appliquer, comme dans l'exemple suivant :</p>
<highlight language="config">
-Alias /foo/bar /baz
-Alias /foo /gaq
+Alias "/foo/bar" "/baz"
+Alias "/foo" "/gaq"
</highlight>
<p>Si l'ordre des directives était inversé, la directive <directive
insensibles à la casse.</p>
<highlight language="config">
- Alias /image /ftp/pub/image
+ Alias "/image" "/ftp/pub/image"
</highlight>
<p>Une requête pour <code>http://example.com/image/foo.gif</code> fera
requête. Autrement dit, si vous définissez</p>
<highlight language="config">
- Alias /icons/ /usr/local/apache/icons/
- </highlight>
+ Alias "/icons/" "/usr/local/apache/icons/"
+ </highlight>
<p>l'alias précédent ne s'appliquera pas à l'url
<code>/icons</code> à cause de l'absence du slash final. Ainsi, si
probablement permettre explicitement l'accès à ce répertoire.</p>
<highlight language="config">
-Alias /image /ftp/pub/image
-<Directory /ftp/pub/image>
+Alias "/image" "/ftp/pub/image"
+<Directory "/ftp/pub/image">
Require all granted
</Directory>
</highlight>
href="../expr.html">syntaxe des expressions</a>.</p>
<highlight language="config">
-<Location /image>
- Alias /ftp/pub/image
+<Location "/image">
+ Alias "/ftp/pub/image"
</Location>
-<LocationMatch /error/(?<NUMBER>[0-9]+)>
- Alias /usr/local/apache/errors/%{env:MATCH_NUMBER}.html
+<LocationMatch "/error/(?<NUMBER>[0-9]+)">
+ Alias "/usr/local/apache/errors/%{env:MATCH_NUMBER}.html"
</LocationMatch>
</highlight>
utiliser :</p>
<highlight language="config">
- AliasMatch ^/icons(.*) /usr/local/apache/icons$1
+ AliasMatch "^/icons(.*)" "/usr/local/apache/icons$1$2"
</highlight>
<p>Toute la puissance des <glossary ref="regex">expressions
insensible à la casse :</p>
<highlight language="config">
- AliasMatch (?i)^/image(.*) /ftp/pub/image$1
+ AliasMatch "(?i)^/image(.*)" "/ftp/pub/image$1"
</highlight>
<p>Il existe une différence subtile entre <directive
avec AliasMatch :</p>
<highlight language="config">
- Alias /image/ /ftp/pub/image/
+ Alias "/image/" "/ftp/pub/image/"
</highlight>
<p>Le simple remplacement d'Alias par AliasMatch ne produira pas le
qui contiennent /image/ vers /ftp/pub/image/ :</p>
<highlight language="config">
- AliasMatch /image/ /ftp/pub/image/
+ AliasMatch "/image/" "/ftp/pub/image/"
</highlight>
<p>Voici la directive AliasMatch qui produira le même résultat que
la directive Alias ci-dessus :</p>
<highlight language="config">
- AliasMatch ^/image/(.*)$ /ftp/pub/image/$1
+ AliasMatch "^/image/(.*)$" "/ftp/pub/image/$1"
</highlight>
<p>Bien entendu, il n'y a aucune raison d'utiliser <directive
différents :</p>
<highlight language="config">
- AliasMatch ^/image/(.*)\.jpg$ /fichiers/jpg.images/$1.jpg<br/>
- AliasMatch ^/image/(.*)\.gif$ /fichiers/gif.images/$1.gif
+ AliasMatch "^/image/(.*)\.jpg$" "/fichiers/jpg.images/$1.jpg"<br/>
+ AliasMatch "^/image/(.*)\.gif$" "/fichiers/gif.images/$1.gif"
</highlight>
<p>Les éventuels slashes de tête multiples seront supprimés par le
<highlight language="config">
# Redirige vers une URL sur un serveur différent
-Redirect /service http://foo2.example.com/service
+Redirect "/service" "http://foo2.example.com/service"
# Redirige vers une URL sur le même serveur
-Redirect /one /two
+Redirect "/one" "/two"
</highlight>
<p>Si le client effectue une requête pour l'URL
rationnelles, veuillez vous reporter à la directive <directive
module="mod_alias">RedirectMatch</directive>.</p>
+
<note><title>Note</title>
<p>Les directives de redirection ont priorité sur les directives
Alias et ScriptAlias, quel que soit leur ordre d'apparition dans le
http_protocol.c).</p>
<highlight language="config">
-Redirect permanent /one http://example.com/two
-Redirect 303 /three http://example.com/other
+Redirect permanent "/one" "http://example.com/two"
+Redirect 303 "/three" "http://example.com/other"
</highlight>
<p>Si une directive <directive>Redirect</directive> est définie au
utilisant la <a href="../expr.html">syntaxe des expressions</a>.</p>
<highlight language="config">
-<Location /one>
- Redirect permanent http://example.com/two
+<Location "/one">
+ Redirect permanent "http://example.com/two"
</Location><br />
-<Location /three>
- Redirect 303 http://example.com/other
+<Location "/three">
+ Redirect 303 "http://example.com/other"
</Location><br />
-<LocationMatch /error/(?<NUMBER>[0-9]+)>
- Redirect permanent http://example.com/errors/%{env:MATCH_NUMBER}.html
+<LocationMatch "/error/(?<NUMBER>[0-9]+)">
+ Redirect permanent "http://example.com/errors/%{env:MATCH_NUMBER}.html"
</LocationMatch><br />
</highlight>
serveur, on peut utiliser :</p>
<highlight language="config">
- RedirectMatch (.*)\.gif$ http://autre.example.com$1.jpg
+ RedirectMatch "(.*)\.gif$" "http://autre.example.com$1.jpg"
</highlight>
<p>Les remarques à propos de la différence entre <directive
fichiers local.</p>
<highlight language="config">
- ScriptAlias /cgi-bin/ /web/cgi-bin/
+ ScriptAlias "/cgi-bin/" "/web/cgi-bin/"
</highlight>
<p>Une requête pour <code>http://example.com/cgi-bin/foo</code>
<code>/web/cgi-bin/foo</code>. Cette configuration est sensiblement
équivalente à :</p>
<highlight language="config">
-Alias /cgi-bin/ /web/cgi-bin/
-<Location /cgi-bin >
+Alias "/cgi-bin/" "/web/cgi-bin/"
+<Location "/cgi-bin">
SetHandler cgi-script
Options +ExecCGI
</Location>
avec un script ou gestionnaire de votre cru. Par exemple :</p>
<highlight language="config">
- ScriptAlias /cgi-bin/ /web/cgi-handler.pl
+ ScriptAlias "/cgi-bin/" "/web/cgi-handler.pl"
</highlight>
<p>Dans ce scénario, tous les fichiers faisant l'objet d'une requête
module="core">SetHandler</directive>, et <directive
module="core">Options</directive> comme dans l'exemple suivant :
<highlight language="config">
-<Directory /usr/local/apache2/htdocs/cgi-bin >
+<Directory "/usr/local/apache2/htdocs/cgi-bin">
SetHandler cgi-script
Options ExecCGI
</Directory>
utilisant la <a href="../expr.html">syntaxe des expressions</a>.</p>
<highlight language="config">
-<Location /cgi-bin >
- ScriptAlias /web/cgi-bin/
+<Location "/cgi-bin">
+ ScriptAlias "/web/cgi-bin/"
</Location>
-<LocationMatch /cgi-bin/errors/(?<NUMBER>[0-9]+)>
- ScriptAlias /web/cgi-bin/errors/%{env:MATCH_NUMBER}.cgi
+<LocationMatch "/cgi-bin/errors/(?<NUMBER>[0-9]+)">
+ ScriptAlias "/web/cgi-bin/errors/%{env:MATCH_NUMBER}.cgi"
</LocationMatch><br />
</highlight>
standard <code>/cgi-bin</code>, on peut utiliser :</p>
<highlight language="config">
- ScriptAliasMatch ^/cgi-bin(.*) /usr/local/apache/cgi-bin$1
+ ScriptAliasMatch "^/cgi-bin(.*)" "/usr/local/apache/cgi-bin$1"
</highlight>
<p>Comme dans le cas d'AliasMatch, toute la puissance des <glossary
avec une comparaison du modèle du chemin URL insensible à la casse :</p>
<highlight language="config">
- ScriptAliasMatch (?i)^/cgi-bin(.*) /usr/local/apache/cgi-bin$1
+ ScriptAliasMatch "(?i)^/cgi-bin(.*)" "/usr/local/apache/cgi-bin$1"
</highlight>
<p>Les remarques à propos de la différence entre <directive
<?xml version="1.0"?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1587031:1673563 (outdated) -->
+<!-- English Revision : 1673563 -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
en s'appuyant sur une base de données. En particulier, il peut mettre à
jour le statut de session de l'utilisateur dans la base de données
chaque fois que celui-ci visite certaines URLs (sous réserve bien
-entendu que l'utilisateur fournisse les informations de connexion
+entendu que l'utilisateur fournissent les informations de connexion
nécessaires).</p>
<p>Pour cela, il faut definir deux directives <directive
module="mod_authz_core">Require</directive> spéciales : <code>Require
DBDMax 20
DBDExptime 300
-<Directory /usr/www/mon.site/team-private/>
+<Directory "/usr/www/mon.site/team-private/">
# configuration de mod_authn_core et mod_auth_basic
# pour mod_authn_dbd
AuthType Basic
# lorsqu'un utilisateur échoue dans sa tentative d'authentification ou
# d'autorisation, on l'invite à se connecter ; cette page doit
# contenir un lien vers /team-private/login.html
- ErrorDocument 401 /login-info.html
+ ErrorDocument 401 "/login-info.html"
- <Files login.html>
+ <Files "login.html">
# il n'est pas nécessaire que l'utilisateur soit déjà connecté !
AuthDBDUserPWQuery "SELECT password FROM authn WHERE user = %s"
AuthzDBDLoginToReferer On
</Files>
- <Files logout.html>
+ <Files "logout.html">
# le processus de déconnexion dbd exécute une requête pour
# enregistrer la déconnexion de l'utilisateur
Require dbd-logout
<directivesynopsis>
<name>AuthzDBDQuery</name>
-<description>Définit la requête SQL pour l'opération
-requise</description>
+<description>Définit la requête SQL pour l'opération requise</description>
<syntax>AuthzDBDQuery <var>requête</var></syntax>
<contextlist><context>directory</context></contextlist>
<?xml version="1.0"?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1562488:1673563 (outdated) -->
+<!-- English Revision : 1673563 -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
suivantes à votre fichier <code>httpd.conf</code>.</p>
<highlight language="config">
-<Location /server-info>
+<Location "/server-info">
SetHandler server-info
</Location>
</highlight>
informations de configuration de votre serveur :</p>
<highlight language="config">
-<Location /server-info>
+<Location "/server-info">
SetHandler server-info
Require host example.com
</Location>
<example><title>Contrôle d'accès</title>
<highlight language="config">
-<Location /server-info>
+<Location "/server-info">
SetHandler server-info
Order allow,deny
# Autorisation d'accès depuis le serveur lui-même
<?xml version="1.0"?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1610396:1673563 (outdated) -->
+<!-- English Revision : 1673563 -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
LDAPOpCacheEntries 1024
LDAPOpCacheTTL 600
-<Location /ldap-status>
+<Location "/ldap-status">
SetHandler ldap-status
Require host yourdomain.example.com
AuthType Basic
AuthName "LDAP Protected"
AuthBasicProvider ldap
- AuthLDAPURL ldap://127.0.0.1/dc=example,dc=com?uid?one
+ AuthLDAPURL "ldap://127.0.0.1/dc=example,dc=com?uid?one"
Require valid-user
</Location>
</highlight>
<module>mod_ldap</module> :</p>
<highlight language="config">
-<Location /server/cache-info>
+<Location "/server/cache-info">
SetHandler ldap-status
</Location>
</highlight>
# Remplacez "votre-domaine.example.com" par le nom de votre
# domaine.
-LDAPTrustedGlobalCert CA_DER /certs/certfile.der
+LDAPTrustedGlobalCert CA_DER "/certs/certfile.der"
-<Location /ldap-status>
+<Location "/ldap-status">
SetHandler ldap-status
Require host yourdomain.example.com
AuthType Basic
AuthName "LDAP Protected"
AuthBasicProvider ldap
- AuthLDAPURL ldaps://127.0.0.1/dc=example,dc=com?uid?one
+ AuthLDAPURL "ldaps://127.0.0.1/dc=example,dc=com?uid?one"
Require valid-user
</Location>
</highlight>
# Remplacez "votre-domaine.example.com" par le nom de votre
# domaine.
-LDAPTrustedGlobalCert CA_DER /certs/certfile.der
+LDAPTrustedGlobalCert CA_DER "/certs/certfile.der"
-<Location /ldap-status>
+<Location "/ldap-status">
SetHandler ldap-status
Require host yourdomain.example.com
AuthType Basic
AuthName "LDAP Protected"
AuthBasicProvider ldap
- AuthLDAPURL ldap://127.0.0.1/dc=example,dc=com?uid?one TLS
+ AuthLDAPURL "ldap://127.0.0.1/dc=example,dc=com?uid?one" TLS
Require valid-user
</Location>
</highlight>
<highlight language="config">
# Spécifie un fichier de certificats de CA Netscape
-LDAPTrustedGlobalCert CA_CERT7_DB /certs/cert7.db
+LDAPTrustedGlobalCert CA_CERT7_DB "/certs/cert7.db"
# Spécifie un fichier key3db optionnel pour le support des
# certificats clients
-LDAPTrustedGlobalCert CERT_KEY3_DB /certs/key3.db
+LDAPTrustedGlobalCert CERT_KEY3_DB "/certs/key3.db"
# Spécifie le fichier secmod si nécessaire
-LDAPTrustedGlobalCert CA_SECMOD /certs/secmod
-<Location /ldap-status>
+LDAPTrustedGlobalCert CA_SECMOD "/certs/secmod"
+<Location "/ldap-status">
SetHandler ldap-status
Require host yourdomain.example.com
AuthName "LDAP Protected"
AuthBasicProvider ldap
LDAPTrustedClientCert CERT_NICKNAME <nickname> [password]
- AuthLDAPURL ldaps://127.0.0.1/dc=example,dc=com?uid?one
+ AuthLDAPURL "ldaps://127.0.0.1/dc=example,dc=com?uid?one"
Require valid-user
</Location>
</highlight>
<highlight language="config">
# Spécifie deux fichiers contenant des certificats de CA
-LDAPTrustedGlobalCert CA_DER /certs/cacert1.der
-LDAPTrustedGlobalCert CA_BASE64 /certs/cacert2.pem
+LDAPTrustedGlobalCert CA_DER "/certs/cacert1.der"
+LDAPTrustedGlobalCert CA_BASE64 "/certs/cacert2.pem"
# Spécifie un fichier contenant des certificats clients
# ainsi qu'une clé
-LDAPTrustedGlobalCert CERT_BASE64 /certs/cert1.pem
-LDAPTrustedGlobalCert KEY_BASE64 /certs/key1.pem [password]
+LDAPTrustedGlobalCert CERT_BASE64 "/certs/cert1.pem"
+LDAPTrustedGlobalCert KEY_BASE64 "/certs/key1.pem" [password]
# N'utilisez pas cette directive, sous peine de provoquer
# une erreur
-#LDAPTrustedClientCert CERT_BASE64 /certs/cert1.pem
+#LDAPTrustedClientCert CERT_BASE64 "/certs/cert1.pem"
</highlight>
</section>
<highlight language="config">
# Spécifie deux fichiers contenant des certificats de CA
-LDAPTrustedGlobalCert CA_DER /certs/cacert1.der
-LDAPTrustedGlobalCert CA_BASE64 /certs/cacert2.pem
+LDAPTrustedGlobalCert CA_DER "/certs/cacert1.der"
+LDAPTrustedGlobalCert CA_BASE64 "/certs/cacert2.pem"
<Location /ldap-status>
SetHandler ldap-status
Require host yourdomain.example.com
- LDAPTrustedClientCert CERT_BASE64 /certs/cert1.pem
- LDAPTrustedClientCert KEY_BASE64 /certs/key1.pem
+ LDAPTrustedClientCert CERT_BASE64 "/certs/cert1.pem"
+ LDAPTrustedClientCert KEY_BASE64 "/certs/key1.pem"
# CA certs respecified due to per-directory client certs
- LDAPTrustedClientCert CA_DER /certs/cacert1.der
- LDAPTrustedClientCert CA_BASE64 /certs/cacert2.pem
+ LDAPTrustedClientCert CA_DER "/certs/cacert1.der"
+ LDAPTrustedClientCert CA_BASE64 "/certs/cacert2.pem"
Satisfy any
AuthType Basic
AuthName "LDAP Protected"
AuthBasicProvider ldap
- AuthLDAPURL ldaps://127.0.0.1/dc=example,dc=com?uid?one
+ AuthLDAPURL "ldaps://127.0.0.1/dc=example,dc=com?uid?one"
Require valid-user
</Location>
</highlight>
<default>LogIOTrackTTFB OFF</default>
<contextlist><context>server config</context><context>virtual host</context>
<context>directory</context><context>.htaccess</context></contextlist>
-<compatibility>Apache HTTP Server 2.4.13 and later</compatibility>
<override>none</override>
+<compatibility>Apache HTTP Server 2.4.13 and later</compatibility>
<usage>
<p>This directive configures whether this module tracks the delay
<?xml version="1.0"?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1672894:1673563 (outdated) -->
+<!-- English Revision: 1673563 -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
<example><title>Passerelle à répartition de charge</title>
<highlight language="config">
-ProxyPass /scgi-bin/ balancer://somecluster/
-<Proxy balancer://somecluster>
- BalancerMember scgi://localhost:4000
- BalancerMember scgi://localhost:4001
+ProxyPass "/scgi-bin/" "balancer://somecluster/"
+<Proxy "balancer://somecluster">
+ BalancerMember "scgi://localhost:4000"
+ BalancerMember "scgi://localhost:4001"
</Proxy>
</highlight>
</example>
<?xml version="1.0"?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1349158:1673563 (outdated) -->
+<!-- English Revision : 1673563 -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
/usr/local/apache2/cgi-bin/script.pl</code> dans tous les cas :</p>
<highlight language="config">
-ScriptAlias /cgi-bin/ /usr/local/apache2/cgi-bin/
-VirtualScriptAlias /never/found/%0/cgi-bin/
+ScriptAlias "/cgi-bin/" "/usr/local/apache2/cgi-bin/"
+VirtualScriptAlias "/never/found/%0/cgi-bin/"
</highlight>
</note>
</summary>
<highlight language="config">
UseCanonicalName Off
-VirtualDocumentRoot /usr/local/apache/vhosts/%0
+VirtualDocumentRoot "/usr/local/apache/vhosts/%0"
</highlight>
<p>Une requête pour
<highlight language="config">
UseCanonicalName Off
-VirtualDocumentRoot /usr/local/apache/vhosts/%3+/%2.1/%2.2/%2.3/%2
+VirtualDocumentRoot "/usr/local/apache/vhosts/%3+/%2.1/%2.2/%2.3/%2"
</highlight>
<p>Une requête pour
suivant :</p>
<highlight language="config">
- VirtualDocumentRoot /usr/local/apache/vhosts/%3+/%2.-1/%2.-2/%2.-3/%2
+ VirtualDocumentRoot "/usr/local/apache/vhosts/%3+/%2.-1/%2.-2/%2.-3/%2"
</highlight>
<p>La requête précédente concernerait alors
<p>Vous pouvez également utiliser : </p>
<highlight language="config">
- VirtualDocumentRoot /usr/local/apache/vhosts/%3+/%2.1/%2.2/%2.3/%2.4+
+ VirtualDocumentRoot "/usr/local/apache/vhosts/%3+/%2.1/%2.2/%2.3/%2.4+"
</highlight>
<p>La requête précédente concernerait alors
<highlight language="config">
UseCanonicalName DNS
-VirtualDocumentRootIP /usr/local/apache/vhosts/%1/%2/%3/%4/docs
-VirtualScriptAliasIP /usr/local/apache/vhosts/%1/%2/%3/%4/cgi-bin
+VirtualDocumentRootIP "/usr/local/apache/vhosts/%1/%2/%3/%4/docs"
+VirtualScriptAliasIP "/usr/local/apache/vhosts/%1/%2/%3/%4/cgi-bin"
</highlight>
<p>Si l'adresse IP de <code>www.domaine.example.com</code> est
le problème de la manière suivante :</p>
<highlight language="config">
- VirtualDocumentRoot /usr/local/apache/vhosts/%2.0.%3.0
+ VirtualDocumentRoot "/usr/local/apache/vhosts/%2.0.%3.0"
</highlight>
<p>Une requête pour