<?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: 1336196:1673945 (outdated) -->
+<!-- English Revision: 1673945 -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
:</p>
<highlight language="config">
- ScriptAlias /cgi-bin/ /usr/local/apache2/cgi-bin/
+ ScriptAlias "/cgi-bin/" "/usr/local/apache2/cgi-bin/"
</highlight>
<p>Cet exemple est tiré de votre fichier de configuration
particulier :</p>
<highlight language="config">
-<Directory /usr/local/apache2/htdocs/somedir>
+<Directory "/usr/local/apache2/htdocs/somedir">
Options +ExecCGI
</Directory>
</highlight>
suivante :</p>
<highlight language="config">
-<Directory /home/*/public_html>
+<Directory "/home/*/public_html">
Options +ExecCGI
AddHandler cgi-script .cgi
</Directory>
programme CGI, vous pouvez utiliser ceci :</p>
<highlight language="config">
-<Directory /home/*/public_html/cgi-bin>
+<Directory "/home/*/public_html/cgi-bin">
Options ExecCGI
SetHandler cgi-script
</Directory>
<?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: 1666025:1673582 (outdated) -->
+<!-- English Revision: 1673582 -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
configuration de votre serveur :</p>
<highlight language="config">
- AccessFileName .config
+ AccessFileName ".config"
</highlight>
</note>
<p>Notez que mettre un fichier <code>.htaccess</code> contenant une
directive dans un répertoire <code>/www/htdocs/exemple</code>
revient exactement au même que mettre la même directive dans une
- section Directory <code><Directory /www/htdocs/exemple></code>
+ section Directory <code><Directory "/www/htdocs/exemple"></code>
du fichier de configuration de votre serveur principal :</p>
<p>Fichier <code>.htaccess</code> dans
<example><title>Contenu du fichier .htaccess dans
<code>/www/htdocs/exemple</code></title>
- <highlight language="config">AddType text/example .exm</highlight>
+ <highlight language="config">AddType text/example ".exm"</highlight>
</example>
<example><title>Section de votre fichier
<code>httpd.conf</code></title>
<highlight language="config">
-<Directory /www/htdocs/example>
- AddType text/example .exm
+<Directory "/www/htdocs/example">
+ AddType text/example ".exm"
</Directory>
</highlight>
</example>
<code>.htaccess</code>, vous pouvez utiliser :</p>
<highlight language="config">
-<Directory /www/htdocs>
+<Directory "/www/htdocs">
AllowOverride All
</Directory>
-<Location />
+<Location "/">
Options +IncludesNoExec -ExecCGI<br />
</Location>
</highlight>
<highlight language="config">
AuthType Basic
AuthName "Password Required"
-AuthUserFile /www/passwords/password.file
-AuthGroupFile /www/passwords/group.file
+AuthUserFile "/www/passwords/password.file"
+AuthGroupFile "/www/passwords/group.file"
Require group admins
</highlight>
<highlight language="config">
Options +Includes
-AddType text/html shtml
+AddType text/html "shtml"
AddHandler server-parsed shtml
</highlight>
<highlight language="config">
# Dans httpd.conf
-RewriteRule ^/images/(.+)\.jpg /images/$1.png
+RewriteRule "^/images/(.+)\.jpg" "/images/$1.png"
# Dans un fichier .htaccess situé dans le répertoire racine de vos
# documents
-RewriteRule ^images/(.+)\.jpg images/$1.png
+RewriteRule "^images/(.+)\.jpg" "images/$1.png"
# Dans un fichier .htaccess situé dans le répertoire images/
-RewriteRule ^(.+)\.jpg $1.png
+RewriteRule "^(.+)\.jpg" "$1.png"
</highlight>
<p>On voit que si le fichier <code>.htaccess</code> se situe à la racine
<highlight language="config">
Options +ExecCGI
-AddHandler cgi-script cgi pl
+AddHandler cgi-script "cgi" "pl"
</highlight>
<p>Alternativement, si vous souhaitez que tous les fichiers d'un
<?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: 1649338:1673932 (outdated) -->
+<!-- English Revision: 1673932 -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
sous-répertoire particulier d'un répertoire home utilisateur.</p>
<highlight language="config">
-<Directory /home/*/public_html/cgi-bin/>
+<Directory "/home/*/public_html/cgi-bin/">
Options ExecCGI
SetHandler cgi-script
</Directory>
<?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: 1646392:1673947 (outdated) -->
+<!-- English Revision: 1673947 -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
<?xml-stylesheet type="text/xsl" href="./style/manual.fr.xsl"?>
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
-<!-- English Revision: 1561569:1673945 (outdated) -->
+<!-- English Revision: 1673945 -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
module="mod_alias">Alias</directive> pour rattacher toute portion
du système de fichiers à l'arborescence du site web. Par exemple, avec</p>
-<highlight language="config">Alias /docs /var/web</highlight>
+<highlight language="config">Alias "/docs" "/var/web"</highlight>
<p>l'URL <code>http://www.example.com/docs/dir/file.html</code>
correspondra au fichier <code>/var/web/dir/file.html</code>. La
Par exemple,</p>
<highlight language="config">
- ScriptAliasMatch ^/~([a-zA-Z0-9]+)/cgi-bin/(.+) /home/$1/cgi-bin/$2
+ ScriptAliasMatch "^/~([a-zA-Z0-9]+)/cgi-bin/(.+)" "/home/$1/cgi-bin/$2"
</highlight>
<p>fera correspondre une requête du style
<code>AliasMatch</code> suivante :</p>
<highlight language="config">
- AliasMatch ^/upages/([a-zA-Z0-9]+)(/(.*))?$ /home/$1/public_html/$3
+ AliasMatch "^/upages/([a-zA-Z0-9]+)(/(.*))?$" "/home/$1/public_html/$3"
</highlight>
</section>
de le requérir à sa nouvelle localisation comme suit :</p>
<highlight language="config">
- Redirect permanent /foo/ http://www.example.com/bar/
+ Redirect permanent "/foo/" "http://www.example.com/bar/"
</highlight>
<p>Ceci aura pour effet de rediriger tout chemin d'URL commençant par
configuration suivante :</p>
<highlight language="config">
- RedirectMatch permanent ^/$ http://www.example.com/startpage.html
+ RedirectMatch permanent "^/$" "http://www.example.com/startpage.html"
</highlight>
<p>De même, pour rediriger temporairement toutes les pages d'un site
vers une page particulière d'un autre site, utilisez ce qui suit :</p>
<highlight language="config">
- RedirectMatch temp .* http://othersite.example.com/startpage.html
+ RedirectMatch temp ".*" "http://othersite.example.com/startpage.html"
</highlight>
</section>
et les renvoie au client comme s'ils appartenaient au serveur local.</p>
<highlight language="config">
-ProxyPass /foo/ http://internal.example.com/bar/<br />
-ProxyPassReverse /foo/ http://internal.example.com/bar/<br />
+ProxyPass "/foo/" "http://internal.example.com/bar/"<br />
+ProxyPassReverse "/foo/" "http://internal.example.com/bar/"<br />
ProxyPassReverseCookieDomain internal.example.com public.example.com<br />
-ProxyPassReverseCookiePath /foo/ /bar/
+ProxyPassReverseCookiePath "/foo/" "/bar/"
</highlight>
<p>La directive <directive module="mod_proxy">ProxyPass</directive> configure