<?xml version="1.0"?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1653941:1673945 (outdated) -->
+<!-- English Revision : 1673945 -->
<!-- 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/
+ Alias "/icons/" "/usr/local/apache/icons/"
</highlight>
<p>l'alias précédent ne s'appliquera pas à l'url
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
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: 1607960:1673945 (outdated) -->
+<!-- English Revision : 1673945 -->
<!-- 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
<module>mod_ldap</module> :</p>
<highlight language="config">
-<Location /server/cache-info>
+<Location "/server/cache-info">
SetHandler ldap-status
</Location>
</highlight>
LDAPTrustedGlobalCert CA_DER /certs/certfile.der
-<Location /ldap-status>
+<Location "/ldap-status">
SetHandler ldap-status
Require host yourdomain.example.com
LDAPTrustedGlobalCert CA_DER /certs/certfile.der
-<Location /ldap-status>
+<Location "/ldap-status">
SetHandler ldap-status
Require host yourdomain.example.com
LDAPTrustedGlobalCert CERT_KEY3_DB /certs/key3.db
# Spécifie le fichier secmod si nécessaire
LDAPTrustedGlobalCert CA_SECMOD /certs/secmod
-<Location /ldap-status>
+<Location "/ldap-status">
SetHandler ldap-status
Require host yourdomain.example.com
# Spécifie deux fichiers contenant des certificats de CA
LDAPTrustedGlobalCert CA_DER /certs/cacert1.der
LDAPTrustedGlobalCert CA_BASE64 /certs/cacert2.pem
-<Location /ldap-status>
+<Location "/ldap-status">
SetHandler ldap-status
Require host yourdomain.example.com