You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by hu...@apache.org on 2012/05/04 17:45:38 UTC
svn commit: r1334039 [3/23] - in /httpd/httpd/branches/2.4.x/docs/manual: ./
developer/ howto/ misc/ mod/ platform/ programs/ rewrite/ ssl/ vhosts/
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/auth.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/auth.html.en?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/auth.html.en (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/auth.html.en Fri May 4 15:45:05 2012
@@ -5,7 +5,7 @@
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
-<title>Authentication, Authorization and Access Control - Apache HTTP Server</title>
+<title>Authentication and Authorization - Apache HTTP Server</title>
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
@@ -19,7 +19,7 @@
<img alt="" src="../images/feather.gif" /></div>
<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
<div id="path">
-<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.4</a> > <a href="./">How-To / Tutorials</a></div><div id="page-content"><div id="preamble"><h1>Authentication, Authorization and Access Control</h1>
+<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.4</a> > <a href="./">How-To / Tutorials</a></div><div id="page-content"><div id="preamble"><h1>Authentication and Authorization</h1>
<div class="toplang">
<p><span>Available Languages: </span><a href="../en/howto/auth.html" title="English"> en </a> |
<a href="../fr/howto/auth.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
@@ -142,9 +142,8 @@ module from each group.</p>
an <code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code> directive like the
following:</p>
- <div class="example"><p><code>
- AllowOverride AuthConfig
- </code></p></div>
+ <pre class="prettyprint lang-config">AllowOverride AuthConfig</pre>
+
<p>Or, if you are just going to put the directives directly in
your main server configuration file, you will of course need to
@@ -216,14 +215,15 @@ module from each group.</p>
placed in <code>httpd.conf</code> inside a <Directory
/usr/local/apache/htdocs/secret> section.</p>
- <div class="example"><p><code>
- AuthType Basic<br />
- AuthName "Restricted Files"<br />
- # (Following line optional)<br />
- AuthBasicProvider file<br />
- AuthUserFile /usr/local/apache/passwd/passwords<br />
- Require user rbowen
- </code></p></div>
+ <pre class="prettyprint lang-config">
+AuthType Basic
+AuthName "Restricted Files"
+# (Following line optional)
+AuthBasicProvider file
+AuthUserFile /usr/local/apache/passwd/passwords
+Require user rbowen
+ </pre>
+
<p>Let's examine each of those directives individually. The <code class="directive"><a href="../mod/mod_authn_core.html#authtype">AuthType</a></code> directive selects
that method that is used to authenticate the user. The most
@@ -313,15 +313,16 @@ person in</a></h2>
<p>Now, you need to modify your <code>.htaccess</code> file to
look like the following:</p>
- <div class="example"><p><code>
- AuthType Basic<br />
- AuthName "By Invitation Only"<br />
- # Optional line:<br />
- AuthBasicProvider file<br />
- AuthUserFile /usr/local/apache/passwd/passwords<br />
- AuthGroupFile /usr/local/apache/passwd/groups<br />
- Require group GroupName
- </code></p></div>
+ <pre class="prettyprint lang-config">
+AuthType Basic
+AuthName "By Invitation Only"
+# Optional line:
+AuthBasicProvider file
+AuthUserFile /usr/local/apache/passwd/passwords
+AuthGroupFile /usr/local/apache/passwd/groups
+Require group GroupName
+ </pre>
+
<p>Now, anyone that is listed in the group <code>GroupName</code>,
and has an entry in the <code>password</code> file, will be let in, if
@@ -331,9 +332,8 @@ person in</a></h2>
specific. Rather than creating a group file, you can just use
the following directive:</p>
- <div class="example"><p><code>
- Require valid-user
- </code></p></div>
+ <pre class="prettyprint lang-config">Require valid-user</pre>
+
<p>Using that rather than the <code>Require user rbowen</code>
line will allow anyone in that is listed in the password file,
@@ -379,17 +379,16 @@ person in</a></h2>
<p>To select a dbd file rather than a text file, for example:</p>
- <div class="example"><p><code>
- <Directory /www/docs/private><br />
- <span class="indent">
- AuthName "Private"<br />
- AuthType Basic<br />
- AuthBasicProvider dbm<br />
- AuthDBMUserFile /www/passwords/passwd.dbm<br />
- Require valid-user<br />
- </span>
- </Directory>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<Directory /www/docs/private>
+ AuthName "Private"
+ AuthType Basic
+ AuthBasicProvider dbm
+ AuthDBMUserFile /www/passwords/passwd.dbm
+ Require valid-user
+</Directory>
+ </pre>
+
<p>Other options are available. Consult the
<code class="module"><a href="../mod/mod_authn_dbm.html">mod_authn_dbm</a></code> documentation for more details.</p>
@@ -404,18 +403,17 @@ person in</a></h2>
scheme that meets your needs. In the following example, both the
file and LDAP based authentication providers are being used.</p>
- <div class="example"><p><code>
- <Directory /www/docs/private><br />
- <span class="indent">
- AuthName "Private"<br />
- AuthType Basic<br />
- AuthBasicProvider file ldap<br />
- AuthUserFile /usr/local/apache/passwd/passwords<br />
- AuthLDAPURL ldap://ldaphost/o=yourorg<br />
- Require valid-user<br />
- </span>
- </Directory>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<Directory /www/docs/private>
+ AuthName "Private"
+ AuthType Basic
+ AuthBasicProvider file ldap
+ AuthUserFile /usr/local/apache/passwd/passwords
+ AuthLDAPURL ldap://ldaphost/o=yourorg
+ Require valid-user
+</Directory>
+ </pre>
+
<p>In this example the file provider will attempt to authenticate
the user first. If it is unable to authenticate the user, the LDAP
@@ -430,20 +428,19 @@ person in</a></h2>
authorization methods can also be used. In this example both file group
authorization as well as LDAP group authorization is being used.</p>
- <div class="example"><p><code>
- <Directory /www/docs/private><br />
- <span class="indent">
- AuthName "Private"<br />
- AuthType Basic<br />
- AuthBasicProvider file<br />
- AuthUserFile /usr/local/apache/passwd/passwords<br />
- AuthLDAPURL ldap://ldaphost/o=yourorg<br />
- AuthGroupFile /usr/local/apache/passwd/groups<br />
- Require group GroupName<br />
- Require ldap-group cn=mygroup,o=yourorg<br />
- </span>
- </Directory>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<Directory /www/docs/private>
+ AuthName "Private"
+ AuthType Basic
+ AuthBasicProvider file
+ AuthUserFile /usr/local/apache/passwd/passwords
+ AuthLDAPURL ldap://ldaphost/o=yourorg
+ AuthGroupFile /usr/local/apache/passwd/groups
+ Require group GroupName
+ Require ldap-group cn=mygroup,o=yourorg
+</Directory>
+ </pre>
+
<p>To take authorization a little further, authorization container
directives such as
@@ -521,16 +518,14 @@ person in</a></h2>
that will be called during the authorization stage of the request
processing. For example:</p>
- <div class="example"><p><code>
- Require ip <var>address</var>
- </code></p></div>
+ <pre class="prettyprint lang-config">Require ip <var>address</var></pre>
+
<p>where <var>address</var> is an IP address (or a partial IP
address) or:</p>
- <div class="example"><p><code>
- Require host <var>domain_name</var>
- </code></p></div>
+ <pre class="prettyprint lang-config">Require host <var>domain_name</var></pre>
+
<p>where <var>domain_name</var> is a fully qualified domain name
(or a partial domain name); you may provide multiple addresses or
@@ -540,45 +535,40 @@ person in</a></h2>
board, and you want to keep them out, you could do the
following:</p>
- <div class="example"><p><code>
- <RequireAll>
- <span class="indent">
- Require all granted<br />
- Require not ip 10.252.46.165
- </span>
- </RequireAll>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<RequireAll>
+ Require all granted
+ Require not ip 10.252.46.165
+</RequireAll>
+ </pre>
+
<p>Visitors coming from that address will not be able to see
the content covered by this directive. If, instead, you have a
machine name, rather than an IP address, you can use that.</p>
- <div class="example"><p><code>
- <RequireAll>
- <span class="indent">
- Require all granted<br />
- Require not host <var>host.example.com</var>
- </span>
- </RequireAll>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<RequireAll>
+ Require all granted
+ Require not host host.example.com
+</RequireAll>
+ </pre>
+
<p>And, if you'd like to block access from an entire domain,
you can specify just part of an address or domain name:</p>
- <div class="example"><p><code>
- <RequireAll>
- <span class="indent">
- Require all granted<br />
- <RequireNone>
- <span class="indent">
- Require ip 192.168.205<br />
- Require host phishers.example.com moreidiots.example<br />
- Require host ke
- </span>
- </RequireNone>
- </span>
- </RequireAll>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<RequireAll>
+ Require all granted
+ <RequireNone>
+ Require ip 192.168.205
+ Require host phishers.example.com moreidiots.example
+ Require host ke
+ </RequireNone>
+</RequireAll>
+ </pre>
+
<p>The above example uses the <code class="directive"><a href="../mod/mod_authz_core.html#requirenone"><RequireNone></a></code> directive
to make sure that none of the
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/auth.html.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/auth.html.fr?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/auth.html.fr (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/auth.html.fr Fri May 4 15:45:05 2012
@@ -5,7 +5,7 @@
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
-<title>Authentification, autorisation et contrôle d'accès - Serveur Apache HTTP</title>
+<title>Authentification et autorisation - Serveur Apache HTTP</title>
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
@@ -19,7 +19,7 @@
<img alt="" src="../images/feather.gif" /></div>
<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
<div id="path">
-<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">Serveur HTTP</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.4</a> > <a href="./">Recettes / Tutoriels</a></div><div id="page-content"><div id="preamble"><h1>Authentification, autorisation et contrôle d'accès</h1>
+<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">Serveur HTTP</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.4</a> > <a href="./">Recettes / Tutoriels</a></div><div id="page-content"><div id="preamble"><h1>Authentification et autorisation</h1>
<div class="toplang">
<p><span>Langues Disponibles: </span><a href="../en/howto/auth.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="../fr/howto/auth.html" title="Français"> fr </a> |
@@ -146,9 +146,8 @@ module de chaque groupe.</p>
d'une directive <code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code>
du style :</p>
- <div class="example"><p><code>
- AllowOverride AuthConfig
- </code></p></div>
+ <pre class="prettyprint lang-config">AllowOverride AuthConfig</pre>
+
<p>Si vous avez l'intention d'ajouter les directives directement
dans le fichier de configuration principal, vous devrez bien entendu
@@ -224,14 +223,15 @@ module de chaque groupe.</p>
fichier <code>httpd.conf</code> à l'intérieur d'une section <Directory
/usr/local/apache/htdocs/secret> :</p>
- <div class="example"><p><code>
- AuthType Basic<br />
- AuthName "Fichiers réservés"<br />
- # (La ligne suivante est facultative)<br />
- AuthBasicProvider file<br />
- AuthUserFile /usr/local/apache/passwd/passwords<br />
- Require user rbowen
- </code></p></div>
+ <pre class="prettyprint lang-config">
+AuthType Basic
+AuthName "Restricted Files"
+# (Following line optional)
+AuthBasicProvider file
+AuthUserFile /usr/local/apache/passwd/passwords
+Require user rbowen
+ </pre>
+
<p>Examinons ces directives une à une. La directive <code class="directive"><a href="../mod/mod_authn_core.html#authtype">AuthType</a></code> définit la méthode
utilisée pour authentifier l'utilisateur. La méthode la plus
@@ -326,15 +326,16 @@ plusieurs personnes</a></h2>
<p>Maintenant, vous devez modifier votre fichier
<code>.htaccess</code> comme suit :</p>
- <div class="example"><p><code>
- AuthType Basic<br />
- AuthName "By Invitation Only"<br />
- # Ligne facultative :<br />
- AuthBasicProvider file<br />
- AuthUserFile /usr/local/apache/passwd/passwords<br />
- AuthGroupFile /usr/local/apache/passwd/groups<br />
- Require group Nom-de-groupe
- </code></p></div>
+ <pre class="prettyprint lang-config">
+AuthType Basic
+AuthName "By Invitation Only"
+# Optional line:
+AuthBasicProvider file
+AuthUserFile /usr/local/apache/passwd/passwords
+AuthGroupFile /usr/local/apache/passwd/groups
+Require group GroupName
+ </pre>
+
<p>Maintenant, quiconque appartient au groupe
<code>Nom-de-groupe</code>, et possède une entrée dans le fichier
@@ -345,9 +346,8 @@ plusieurs personnes</a></h2>
l'accès à plusieurs personnes. Plutôt que de créer un fichier de
groupes, il vous suffit d'ajouter la directive suivante :</p>
- <div class="example"><p><code>
- Require valid-user
- </code></p></div>
+ <pre class="prettyprint lang-config">Require valid-user</pre>
+
<p>Le remplacement de la ligne <code>Require user rbowen</code> par
la ligne <code>Require valid-user</code> autorisera l'accès à
@@ -399,17 +399,16 @@ passe</a></h2>
<p>Par exemple, pour sélectionner un fichier dbm à la place d'un
fichier texte :</p>
- <div class="example"><p><code>
- <Directory /www/docs/private><br />
- <span class="indent">
- AuthName "Private"<br />
- AuthType Basic<br />
- AuthBasicProvider dbm<br />
- AuthDBMUserFile /www/passwords/passwd.dbm<br />
- Require valid-user<br />
- </span>
- </Directory>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<Directory /www/docs/private>
+ AuthName "Private"
+ AuthType Basic
+ AuthBasicProvider dbm
+ AuthDBMUserFile /www/passwords/passwd.dbm
+ Require valid-user
+</Directory>
+ </pre>
+
<p>D'autres options sont disponibles. Consultez la documentation de
<code class="module"><a href="../mod/mod_authn_dbm.html">mod_authn_dbm</a></code> pour plus de détails.</p>
@@ -427,18 +426,17 @@ d'authentification</a></h2>
conjointement les fournisseurs d'authentification
file et LDAP :</p>
- <div class="example"><p><code>
- <Directory /www/docs/private><br />
- <span class="indent">
- AuthName "Private"<br />
- AuthType Basic<br />
- AuthBasicProvider file ldap<br />
- AuthUserFile /usr/local/apache/passwd/passwords<br />
- AuthLDAPURL ldap://ldaphost/o=yourorg<br />
- Require valid-user<br />
- </span>
- </Directory>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<Directory /www/docs/private>
+ AuthName "Private"
+ AuthType Basic
+ AuthBasicProvider file ldap
+ AuthUserFile /usr/local/apache/passwd/passwords
+ AuthLDAPURL ldap://ldaphost/o=yourorg
+ Require valid-user
+</Directory>
+ </pre>
+
<p>Dans cet exemple, le fournisseur file va tenter d'authentifier
l'utilisateur en premier. S'il n'y parvient pas, le fournisseur LDAP
@@ -456,20 +454,19 @@ d'authentification</a></h2>
autorisation à base de fichier de groupes et une autorisation à base
de groupes LDAP.</p>
- <div class="example"><p><code>
- <Directory /www/docs/private><br />
- <span class="indent">
- AuthName "Private"<br />
- AuthType Basic<br />
- AuthBasicProvider file<br />
- AuthUserFile /usr/local/apache/passwd/passwords<br />
+ <pre class="prettyprint lang-config">
+<Directory /www/docs/private>
+ AuthName "Private"
+ AuthType Basic
+ AuthBasicProvider file
+ AuthUserFile /usr/local/apache/passwd/passwords
AuthLDAPURL ldap://ldaphost/o=yourorg
- AuthGroupFile /usr/local/apache/passwd/groups<br />
- Require group GroupName<br />
- Require ldap-group cn=mygroup,o=yourorg<br />
- </span>
- </Directory>
- </code></p></div>
+ AuthGroupFile /usr/local/apache/passwd/groups
+ Require group GroupName
+ Require ldap-group cn=mygroup,o=yourorg
+</Directory>
+ </pre>
+
<p>Pour un scénario d'autorisation un peu plus avancé, des
directives de conteneur d'autorisation comme <code class="directive"><a href="../mod/mod_authz_core.html#requireall"><RequireAll></a></code> et
@@ -552,16 +549,14 @@ autorisation</a></h2>
seront appelés dans le processus d'autorisation au cours du
traitement de la requête. Par exemple :</p>
- <div class="example"><p><code>
- Require ip <var>adresse</var>
- </code></p></div>
+ <pre class="prettyprint lang-config">Require ip <var>address</var></pre>
+
<p>où <var>adresse</var> est une adresse IP (ou une adresse IP
partielle) ou :</p>
- <div class="example"><p><code>
- Require host <var>nom_domaine</var>
- </code></p></div>
+ <pre class="prettyprint lang-config">Require host <var>domain_name</var></pre>
+
<p>où <var>nom_domaine</var> est un nom de domaine entièrement
qualifé (ou un nom de domaine partiel) ; vous pouvez indiquer
@@ -570,47 +565,42 @@ autorisation</a></h2>
<p>Par exemple, si vous voulez rejeter les spams dont une
machine vous inonde, vous pouvez utiliser ceci :</p>
- <div class="example"><p><code>
- <RequireAll>
- <span class="indent">
- Require all granted<br />
- Require not ip 10.252.46.165
- </span>
- </RequireAll>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<RequireAll>
+ Require all granted
+ Require not ip 10.252.46.165
+</RequireAll>
+ </pre>
+
<p>Ainsi, les visiteurs en provenance de cette adresse ne
pourront pas voir le contenu concerné par cette directive. Si,
par contre, vous connaissez le nom de la machine, vous pouvez
utiliser ceci :</p>
- <div class="example"><p><code>
- <RequireAll>
- <span class="indent">
- Require all granted<br />
- Require not host <var>serveur.example.com</var>
- </span>
- </RequireAll>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<RequireAll>
+ Require all granted
+ Require not host host.example.com
+</RequireAll>
+ </pre>
+
<p>Et si vous voulez interdire l'accès à toutes les machines
d'un domaine, vous pouvez spécifier une partie seulement de
l'adresse ou du nom de domaine :</p>
- <div class="example"><p><code>
- <RequireAll>
- <span class="indent">
- Require all granted<br />
- <RequireNone>
- <span class="indent">
- Require ip 192.168.205<br />
- Require host phishers.example.com autres-idiots.exemple<br />
- Require host ke
- </span>
- </RequireNone>
- </span>
- </RequireAll>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<RequireAll>
+ Require all granted
+ <RequireNone>
+ Require ip 192.168.205
+ Require host phishers.example.com moreidiots.example
+ Require host ke
+ </RequireNone>
+</RequireAll>
+ </pre>
+
<p>Dans l'exemple ci-dessus, on utilise la directive du
conteneur <code class="directive"><a href="../mod/mod_authz_core.html#requirenone"><RequireNone></a></code> afin de s'assurer
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/auth.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/auth.xml.fr?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/auth.xml.fr (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/auth.xml.fr Fri May 4 15:45:05 2012
@@ -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 : 1331425 -->
+<!-- English Revision: 1331425:1333989 (outdated) -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviwed by : Vincent Deffontaines -->
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/auth.xml.ja
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/auth.xml.ja?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/auth.xml.ja [utf-8] (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/auth.xml.ja [utf-8] Fri May 4 15:45:05 2012
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 479777:1332094 (outdated) -->
+<!-- English Revision: 479777:1333989 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/auth.xml.ko
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/auth.xml.ko?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/auth.xml.ko [euc-kr] (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/auth.xml.ko [euc-kr] Fri May 4 15:45:05 2012
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='EUC-KR' ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
-<!-- English Revision: 105989:1332094 (outdated) -->
+<!-- English Revision: 105989:1333989 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/auth.xml.tr
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/auth.xml.tr?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/auth.xml.tr [utf-8] (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/auth.xml.tr [utf-8] Fri May 4 15:45:05 2012
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.tr.xsl"?>
-<!-- English Revision: 1070891:1332094 (outdated) -->
+<!-- English Revision: 1070891:1333989 (outdated) -->
<!-- =====================================================
Translated by: Umut Samuk <umut belgeler.org>
Reviewed by: Nilgün Belma Bugüner <nilgun belgeler.org>
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.html.en?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.html.en (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.html.en Fri May 4 15:45:05 2012
@@ -65,9 +65,10 @@
directive has not been commented out. A correctly configured directive
may look like this:
- <div class="example"><p><code>
+ <pre class="prettyprint lang-config">
LoadModule cgi_module modules/mod_cgi.so
- </code></p></div></div>
+ </pre>
+</div>
<h3><a name="scriptalias" id="scriptalias">ScriptAlias</a></h3>
@@ -84,9 +85,10 @@
<p>The <code class="directive"><a href="../mod/mod_alias.html#scriptalias">ScriptAlias</a></code>
directive looks like:</p>
- <div class="example"><p><code>
+ <pre class="prettyprint lang-config">
ScriptAlias /cgi-bin/ /usr/local/apache2/cgi-bin/
- </code></p></div>
+ </pre>
+
<p>The example shown is from your default <code>httpd.conf</code>
configuration file, if you installed Apache in the default
@@ -139,13 +141,12 @@
file, to specify that CGI execution was permitted in a particular
directory:</p>
- <div class="example"><p><code>
- <Directory /usr/local/apache2/htdocs/somedir><br />
- <span class="indent">
- Options +ExecCGI<br />
- </span>
- </Directory>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<Directory /usr/local/apache2/htdocs/somedir>
+ Options +ExecCGI
+</Directory>
+ </pre>
+
<p>The above directive tells Apache to permit the execution
of CGI files. You will also need to tell the server what
@@ -153,9 +154,10 @@
files with the <code>cgi</code> or <code>pl</code> extension as CGI
programs:</p>
- <div class="example"><p><code>
+ <pre class="prettyprint lang-config">
AddHandler cgi-script .cgi .pl
- </code></p></div>
+ </pre>
+
<h3><a name="htaccess" id="htaccess">.htaccess files</a></h3>
@@ -173,27 +175,25 @@
<code>.cgi</code> in users' directories, you can use the
following configuration.</p>
- <div class="example"><p><code>
- <Directory /home/*/public_html><br />
- <span class="indent">
- Options +ExecCGI<br />
- AddHandler cgi-script .cgi<br />
- </span>
- </Directory>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<Directory /home/*/public_html>
+ Options +ExecCGI
+ AddHandler cgi-script .cgi
+</Directory>
+ </pre>
+
<p>If you wish designate a <code>cgi-bin</code> subdirectory of
a user's directory where everything will be treated as a CGI
program, you can use the following.</p>
- <div class="example"><p><code>
- <Directory /home/*/public_html/cgi-bin><br />
- <span class="indent">
- Options ExecCGI<br />
- SetHandler cgi-script<br />
- </span>
- </Directory>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<Directory /home/*/public_html/cgi-bin>
+ Options ExecCGI
+ SetHandler cgi-script
+</Directory>
+ </pre>
+
@@ -231,11 +231,12 @@
file called <code>first.pl</code>, and put it in your
<code>cgi-bin</code> directory.</p>
- <div class="example"><p><code>
- #!/usr/bin/perl<br />
- print "Content-type: text/html\n\n";<br />
- print "Hello, World.";
- </code></p></div>
+ <pre class="prettyprint lang-perl">
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+print "Hello, World.";
+ </pre>
+
<p>Even if you are not familiar with Perl, you should be able
to see what is happening here. The first line tells Apache
@@ -339,9 +340,10 @@
interpreter (often <code>perl</code>) indicated in the first
line of your CGI program, which will look something like:</p>
- <div class="example"><p><code>
+ <pre class="prettyprint lang-perl">
#!/usr/bin/perl
- </code></p></div>
+ </pre>
+
<p>Make sure that this is in fact the path to the
interpreter.</p>
@@ -479,15 +481,14 @@
<a href="../env.html">add your own environment variables</a>
to the basic ones provided by default.</p>
- <div class="example"><p><code>
- #!/usr/bin/perl<br />
- print "Content-type: text/html\n\n";<br />
- foreach $key (keys %ENV) {<br />
- <span class="indent">
- print "$key --> $ENV{$key}<br>";<br />
- </span>
- }
- </code></p></div>
+ <pre class="prettyprint lang-perl">
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+foreach $key (keys %ENV) {
+ print "$key --> $ENV{$key}<br>";
+}
+ </pre>
+
<h3><a name="stdin" id="stdin">STDIN and STDOUT</a></h3>
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.html.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.html.fr?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.html.fr (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.html.fr Fri May 4 15:45:05 2012
@@ -26,6 +26,8 @@
<a href="../ja/howto/cgi.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="../ko/howto/cgi.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
</div>
+<div class="outofdate">Cette traduction peut être périmée. Vérifiez la version
+ anglaise pour les changements récents.</div>
</div>
<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#intro">Introduction</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#configuring">Configurer Apache pour autoriser CGI</a></li>
@@ -65,9 +67,10 @@
commentée dans votre <code>httpd.conf</code>. Une directive correcte
doit ressembler à ceci :
- <div class="example"><p><code>
+ <pre class="prettyprint lang-config">
LoadModule cgi_module modules/mod_cgi.so
- </code></p></div></div>
+ </pre>
+</div>
<h3><a name="scriptalias" id="scriptalias">ScriptAlias</a></h3>
@@ -81,9 +84,10 @@
<p>La directive <code class="directive"><a href="../mod/mod_alias.html#scriptalias">ScriptAlias</a></code> se présente comme suit
:</p>
- <div class="example"><p><code>
+ <pre class="prettyprint lang-config">
ScriptAlias /cgi-bin/ /usr/local/apache2/cgi-bin/
- </code></p></div>
+ </pre>
+
<p>Cet exemple est tiré de votre fichier de configuration
<code>httpd.conf</code> par défaut, si vous avez installé Apache
@@ -147,13 +151,12 @@
l'exécution des programmes CGI est permise depuis un répertoire
particulier :</p>
- <div class="example"><p><code>
- <Directory /usr/local/apache2/htdocs/un-repertoire><br />
- <span class="indent">
- Options +ExecCGI<br />
- </span>
- </Directory>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<Directory /usr/local/apache2/htdocs/somedir>
+ Options +ExecCGI
+</Directory>
+ </pre>
+
<p>La directive ci-dessus indique à Apache qu'il doit permettre
l'exécution des fichiers CGI. Vous devez aussi indiquer au serveur
@@ -162,9 +165,10 @@
extension <code>cgi</code> ou <code>pl</code> en tant que
programmes CGI :</p>
- <div class="example"><p><code>
+ <pre class="prettyprint lang-config">
AddHandler cgi-script .cgi .pl
- </code></p></div>
+ </pre>
+
<h3><a name="htaccess" id="htaccess">Fichiers .htaccess</a></h3>
@@ -184,27 +188,25 @@
répertoire utilisateur, vous pouvez utiliser la configuration
suivante :</p>
- <div class="example"><p><code>
- <Directory /home/*/public_html><br />
- <span class="indent">
- Options +ExecCGI<br />
- AddHandler cgi-script .cgi<br />
- </span>
- </Directory>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<Directory /home/*/public_html>
+ Options +ExecCGI
+ AddHandler cgi-script .cgi
+</Directory>
+ </pre>
+
<p>Pour indiquer un sous-répertoire <code>cgi-bin</code> d'un
répertoire utilisateur où tout fichier sera traité en tant que
programme CGI, vous pouvez utiliser ceci :</p>
- <div class="example"><p><code>
- <Directory /home/*/public_html/cgi-bin><br />
- <span class="indent">
- Options ExecCGI<br />
- SetHandler cgi-script<br />
- </span>
- </Directory>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<Directory /home/*/public_html/cgi-bin>
+ Options ExecCGI
+ SetHandler cgi-script
+</Directory>
+ </pre>
+
@@ -243,11 +245,12 @@
<code>premier.pl</code>, et placez le dans votre répertoire
<code>cgi-bin</code>.</p>
- <div class="example"><p><code>
- #!/usr/bin/perl<br />
- print "Content-type: text/html\n\n";<br />
- print "Bonjour tout le monde . . .";
- </code></p></div>
+ <pre class="prettyprint lang-perl">
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+print "Hello, World.";
+ </pre>
+
<p>Même si Perl ne vous est pas familier, vous devriez être
capable de comprendre le fonctionnement de ce programme. La
@@ -361,9 +364,10 @@
trouve à la première ligne de votre programme CGI et qui va
ressembler à ceci :</p>
- <div class="example"><p><code>
+ <pre class="prettyprint lang-perl">
#!/usr/bin/perl
- </code></p></div>
+ </pre>
+
<p>Assurez-vous qu'il s'agit bien du chemin correct vers
l'interpréteur.</p>
@@ -516,15 +520,14 @@
variables d'environnement</a> aux variables de base fournies par
défaut.</p>
- <div class="example"><p><code>
- #!/usr/bin/perl<br />
- print "Content-type: text/html\n\n";<br />
- foreach $key (keys %ENV) {<br />
- <span class="indent">
- print "$key --> $ENV{$key}<br>";<br />
- </span>
- }
- </code></p></div>
+ <pre class="prettyprint lang-perl">
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+foreach $key (keys %ENV) {
+ print "$key --> $ENV{$key}<br>";
+}
+ </pre>
+
<h3><a name="stdin" id="stdin">STDIN et STDOUT</a></h3>
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.xml.fr?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.xml.fr (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.xml.fr Fri May 4 15:45:05 2012
@@ -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 : 1331576 -->
+<!-- English Revision: 1331576:1333989 (outdated) -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.xml.ja
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.xml.ja?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.xml.ja [utf-8] (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.xml.ja [utf-8] Fri May 4 15:45:05 2012
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 545841:1174747 (outdated) -->
+<!-- English Revision: 545841:1333989 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.xml.ko
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.xml.ko?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.xml.ko [euc-kr] (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.xml.ko [euc-kr] Fri May 4 15:45:05 2012
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='EUC-KR' ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
-<!-- English Revision: 105989:1174747 (outdated) -->
+<!-- English Revision: 105989:1333989 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.xml.meta
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.xml.meta?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.xml.meta (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/cgi.xml.meta Fri May 4 15:45:05 2012
@@ -8,7 +8,7 @@
<variants>
<variant>en</variant>
- <variant>fr</variant>
+ <variant outdated="yes">fr</variant>
<variant outdated="yes">ja</variant>
<variant outdated="yes">ko</variant>
</variants>
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.html.en?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.html.en (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.html.en Fri May 4 15:45:05 2012
@@ -5,7 +5,7 @@
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
-<title>Apache Tutorial: .htaccess files - Apache HTTP Server</title>
+<title>Apache HTTP Server Tutorial: .htaccess files - Apache HTTP Server</title>
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
@@ -19,7 +19,7 @@
<img alt="" src="../images/feather.gif" /></div>
<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
<div id="path">
-<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.4</a> > <a href="./">How-To / Tutorials</a></div><div id="page-content"><div id="preamble"><h1>Apache Tutorial: .htaccess files</h1>
+<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.4</a> > <a href="./">How-To / Tutorials</a></div><div id="page-content"><div id="preamble"><h1>Apache HTTP Server Tutorial: .htaccess files</h1>
<div class="toplang">
<p><span>Available Languages: </span><a href="../en/howto/htaccess.html" title="English"> en </a> |
<a href="../fr/howto/htaccess.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
@@ -46,7 +46,7 @@ changes on a per-directory basis.</p>
<table class="related"><tr><th>Related Modules</th><th>Related Directives</th></tr><tr><td><ul><li><code class="module"><a href="../mod/core.html">core</a></code></li><li><code class="module"><a href="../mod/mod_authn_file.html">mod_authn_file</a></code></li><li><code class="module"><a href="../mod/mod_authz_groupfile.html">mod_authz_groupfile</a></code></li><li><code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code></li><li><code class="module"><a href="../mod/mod_include.html">mod_include</a></code></li><li><code class="module"><a href="../mod/mod_mime.html">mod_mime</a></code></li></ul></td><td><ul><li><code class="directive"><a href="../mod/core.html#accessfilename">AccessFileName</a></code></li><li><code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code></li><li><code class="directive"><a href="../mod/core.html#options">Options</a></code></li><li><code class="directive"><a href="../mod/mod_mime.html#addhandler">AddHandl
er</a></code></li><li><code class="directive"><a href="../mod/core.html#sethandler">SetHandler</a></code></li><li><code class="directive"><a href="../mod/mod_authn_core.html#authtype">AuthType</a></code></li><li><code class="directive"><a href="../mod/mod_authn_core.html#authname">AuthName</a></code></li><li><code class="directive"><a href="../mod/mod_authn_file.html#authuserfile">AuthUserFile</a></code></li><li><code class="directive"><a href="../mod/mod_authz_groupfile.html#authgroupfile">AuthGroupFile</a></code></li><li><code class="directive"><a href="../mod/mod_authz_core.html#require">Require</a></code></li></ul></td></tr></table>
<div class="note">You should avoid using <code>.htaccess</code> files completely if you have access to
- httpd main server config file. Using <code>.htaccess</code> files slows down your Apache server.
+ httpd main server config file. Using <code>.htaccess</code> files slows down your Apache http server.
Any directive that you can include in a <code>.htaccess</code> file is better set in a <code class="directive"><a href="../mod/core.html#directory">Directory</a></code> block, as it will have the same effect with better performance.</div>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
@@ -65,9 +65,8 @@ changes on a per-directory basis.</p>
if you would rather call the file <code>.config</code> then you
can put the following in your server configuration file:</p>
- <div class="example"><p><code>
- AccessFileName .config
- </code></p></div>
+ <pre class="prettyprint lang-config">AccessFileName .config</pre>
+
</div>
<p>In general, <code>.htaccess</code> files use the same syntax as
@@ -138,18 +137,18 @@ changes on a per-directory basis.</p>
<code>.htaccess</code> files.</p>
<p>The first of these is performance. When <code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code>
- is set to allow the use of <code>.htaccess</code> files, Apache will
+ is set to allow the use of <code>.htaccess</code> files, httpd will
look in every directory for <code>.htaccess</code> files. Thus,
permitting <code>.htaccess</code> files causes a performance hit,
whether or not you actually even use them! Also, the
<code>.htaccess</code> file is loaded every time a document is
requested.</p>
- <p>Further note that Apache must look for <code>.htaccess</code> files
+ <p>Further note that httpd must look for <code>.htaccess</code> files
in all higher-level directories, in order to have a full complement of
directives that it must apply. (See section on <a href="#how">how
directives are applied</a>.) Thus, if a file is requested out of a
- directory <code>/www/htdocs/example</code>, Apache must look for the
+ directory <code>/www/htdocs/example</code>, httpd must look for the
following files:</p>
<div class="example"><p><code>
@@ -194,31 +193,28 @@ changes on a per-directory basis.</p>
<p><code>.htaccess</code> file in <code>/www/htdocs/example</code>:</p>
<div class="example"><h3>Contents of .htaccess file in
- <code>/www/htdocs/example</code></h3><p><code>
- AddType text/example .exm
- </code></p></div>
+ <code>/www/htdocs/example</code></h3><pre class="prettyprint lang-config">AddType text/example .exm</pre>
+</div>
<div class="example"><h3>Section from your <code>httpd.conf</code>
- file</h3><p><code>
- <Directory /www/htdocs/example><br />
- <span class="indent">
- AddType text/example .exm<br />
- </span>
- </Directory>
- </code></p></div>
+ file</h3><pre class="prettyprint lang-config">
+<Directory /www/htdocs/example><br />
+ AddType text/example .exm<br />
+</Directory>
+ </pre>
+</div>
<p>However, putting this configuration in your server configuration
file will result in less of a performance hit, as the configuration is
- loaded once when Apache starts, rather than every time a file is
+ loaded once when httpd starts, rather than every time a file is
requested.</p>
<p>The use of <code>.htaccess</code> files can be disabled completely
by setting the <code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code>
directive to <code>none</code>:</p>
- <div class="example"><p><code>
- AllowOverride None
- </code></p></div>
+ <pre class="prettyprint lang-config">AllowOverride None</pre>
+
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="how" id="how">How directives are applied</a></h2>
@@ -239,9 +235,8 @@ changes on a per-directory basis.</p>
<p>In the directory <code>/www/htdocs/example1</code> we have a
<code>.htaccess</code> file containing the following:</p>
- <div class="example"><p><code>
- Options +ExecCGI
- </code></p></div>
+ <pre class="prettyprint lang-config">Options +ExecCGI</pre>
+
<p>(Note: you must have "<code>AllowOverride Options</code>" in effect
to permit the use of the "<code class="directive"><a href="../mod/core.html#options">Options</a></code>" directive in
@@ -250,9 +245,8 @@ changes on a per-directory basis.</p>
<p>In the directory <code>/www/htdocs/example1/example2</code> we have
a <code>.htaccess</code> file containing:</p>
- <div class="example"><p><code>
- Options Includes
- </code></p></div>
+ <pre class="prettyprint lang-config">Options Includes</pre>
+
<p>Because of this second <code>.htaccess</code> file, in the directory
<code>/www/htdocs/example1/example2</code>, CGI execution is not
@@ -272,19 +266,16 @@ changes on a per-directory basis.</p>
prevent script execution while allowing anything else to be set in
<code>.htaccess</code> you can use:</p>
- <div class="example"><p><code>
-<Directory /www/htdocs><br />
-<span class="indent">
-Allowoverride All<br />
-</span>
-</Directory><br />
-<br />
-<Location /><br />
-<span class="indent">
-Options +IncludesNoExec -ExecCGI<br />
-</span>
+ <pre class="prettyprint lang-config">
+<Directory /www/htdocs>
+ Allowoverride All
+</Directory>
+
+<Location />
+ Options +IncludesNoExec -ExecCGI<br />
</Location>
- </code></p></div>
+ </pre>
+
<div class="note">This example assumes that your <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> is <code>/www/htdocs</code>.</div>
@@ -310,13 +301,14 @@ Options +IncludesNoExec -ExecCGI<br />
<p><code>.htaccess</code> file contents:</p>
- <div class="example"><p><code>
- AuthType Basic<br />
- AuthName "Password Required"<br />
- AuthUserFile /www/passwords/password.file<br />
- AuthGroupFile /www/passwords/group.file<br />
- Require Group admins
- </code></p></div>
+ <pre class="prettyprint lang-config">
+AuthType Basic
+AuthName "Password Required"
+AuthUserFile /www/passwords/password.file
+AuthGroupFile /www/passwords/group.file
+Require Group admins
+ </pre>
+
<p>Note that <code>AllowOverride AuthConfig</code> must be in effect
for these directives to have any effect.</p>
@@ -332,11 +324,12 @@ Options +IncludesNoExec -ExecCGI<br />
the following configuration directives, placed in a
<code>.htaccess</code> file in the desired directory:</p>
- <div class="example"><p><code>
- Options +Includes<br />
- AddType text/html shtml<br />
- AddHandler server-parsed shtml
- </code></p></div>
+ <pre class="prettyprint lang-config">
+Options +Includes
+AddType text/html shtml
+AddHandler server-parsed shtml
+ </pre>
+
<p>Note that <code>AllowOverride Options</code> and <code>AllowOverride
FileInfo</code> must both be in effect for these directives to have any
@@ -352,19 +345,21 @@ Options +IncludesNoExec -ExecCGI<br />
the execution of CGI programs in a particular directory. This may be
implemented with the following configuration:</p>
- <div class="example"><p><code>
- Options +ExecCGI<br />
- AddHandler cgi-script cgi pl
- </code></p></div>
+ <pre class="prettyprint lang-config">
+Options +ExecCGI
+AddHandler cgi-script cgi pl
+ </pre>
+
<p>Alternately, if you wish to have all files in the given directory be
considered to be CGI programs, this may be done with the following
configuration:</p>
- <div class="example"><p><code>
- Options +ExecCGI<br />
- SetHandler cgi-script
- </code></p></div>
+ <pre class="prettyprint lang-config">
+Options +ExecCGI
+SetHandler cgi-script
+ </pre>
+
<p>Note that <code>AllowOverride Options</code> and <code>AllowOverride
FileInfo</code> must both be in effect for these directives to have any
@@ -390,7 +385,7 @@ Options +IncludesNoExec -ExecCGI<br />
None</code> in effect.</p>
<p>If, on the other hand, you are getting server errors when trying to
- access documents, check your Apache error log. It will likely tell you
+ access documents, check your httpd error log. It will likely tell you
that the directive used in your <code>.htaccess</code> file is not
permitted.</p>
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.html.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.html.fr?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.html.fr (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.html.fr Fri May 4 15:45:05 2012
@@ -5,7 +5,7 @@
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
-<title>Tutoriel Apache : fichiers .htaccess - Serveur Apache HTTP</title>
+<title>Tutoriel du serveur HTTP Apache : fichiers .htaccess - Serveur Apache HTTP</title>
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
@@ -19,7 +19,7 @@
<img alt="" src="../images/feather.gif" /></div>
<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
<div id="path">
-<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">Serveur HTTP</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.4</a> > <a href="./">Recettes / Tutoriels</a></div><div id="page-content"><div id="preamble"><h1>Tutoriel Apache : fichiers .htaccess</h1>
+<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">Serveur HTTP</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.4</a> > <a href="./">Recettes / Tutoriels</a></div><div id="page-content"><div id="preamble"><h1>Tutoriel du serveur HTTP Apache : fichiers .htaccess</h1>
<div class="toplang">
<p><span>Langues Disponibles: </span><a href="../en/howto/htaccess.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="../fr/howto/htaccess.html" title="Français"> fr </a> |
@@ -27,6 +27,8 @@
<a href="../ko/howto/htaccess.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> |
<a href="../pt-br/howto/htaccess.html" hreflang="pt-br" rel="alternate" title="Português (Brasil)"> pt-br </a></p>
</div>
+<div class="outofdate">Cette traduction peut être périmée. Vérifiez la version
+ anglaise pour les changements récents.</div>
<p>Les fichiers <code>.htaccess</code> fournissent une méthode pour
modifier la configuration du serveur au niveau de chaque répertoire.</p>
@@ -50,7 +52,7 @@ Includes - SSI)</a></li>
<div class="note">Les fichiers <code>.htaccess</code> ne doivent être utilisés
que si vous n'avez pas accès au fichier de configuration du serveur
principal. L'utilisation des fichiers <code>.htaccess</code>
- ralentit le fonctionnement de votre serveur Apache. Il est toujours
+ ralentit le fonctionnement de votre serveur HTTP Apache. Il est toujours
préférable de définir les directives que vous pouvez inclure dans un
fichier <code>.htaccess</code> dans une section <code class="directive"><a href="../mod/core.html#directory">Directory</a></code>, car elles produiront le
même effet avec de meilleures performances.</div>
@@ -74,9 +76,10 @@ Includes - SSI)</a></li>
<code>.config</code>, vous pouvez mettre ceci dans le fichier de
configuration de votre serveur :</p>
- <div class="example"><p><code>
+ <pre class="prettyprint lang-config">
AccessFileName .config
- </code></p></div>
+ </pre>
+
</div>
<p>En général, les fichiers <code>.htaccess</code> utilisent la même
@@ -162,20 +165,20 @@ Includes - SSI)</a></li>
<p>La première est liée aux performances. Lorsque la directive
<code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code> est définie de
façon à autoriser l'utilisation des fichiers <code>.htaccess</code>,
- Apache va rechercher leur présence dans chaque répertoire. Ainsi,
+ httpd va rechercher leur présence dans chaque répertoire. Ainsi,
permettre l'utilisation des fichiers <code>.htaccess</code> est déjà
en soi une cause de dégradation des performances, que vous utilisiez
effectivement ces fichiers ou non ! De plus, le fichier
<code>.htaccess</code> est chargé en mémoire chaque fois qu'un
document fait l'objet d'une requête.</p>
- <p>Notez aussi qu'Apache doit rechercher les fichiers
+ <p>Notez aussi que httpd doit rechercher les fichiers
<code>.htaccess</code> dans tous les répertoires de niveau
supérieur, afin de rassembler toutes les directives qui s'appliquent
au répertoire courant (Voir la section <a href="#how">comment sont
appliquées les directives</a>). Ainsi, si un fichier fait l'objet
d'une requête à partir d'un répertoire
- <code>/www/htdocs/exemple</code>, Apache doit rechercher les
+ <code>/www/htdocs/exemple</code>, httpd doit rechercher les
fichiers suivants :</p>
<div class="example"><p><code>
@@ -217,18 +220,16 @@ Includes - SSI)</a></li>
<code>/www/htdocs/exemple</code> :</p>
<div class="example"><h3>Contenu du fichier .htaccess dans
- <code>/www/htdocs/exemple</code></h3><p><code>
- AddType text/exemple .exm
- </code></p></div>
+ <code>/www/htdocs/exemple</code></h3><pre class="prettyprint lang-config">AddType text/example .exm</pre>
+</div>
<div class="example"><h3>Section de votre fichier
- <code>httpd.conf</code></h3><p><code>
- <Directory /www/htdocs/exemple><br />
- <span class="indent">
- AddType text/exemple .exm<br />
- </span>
- </Directory>
- </code></p></div>
+ <code>httpd.conf</code></h3><pre class="prettyprint lang-config">
+<Directory /www/htdocs/example><br />
+ AddType text/example .exm<br />
+</Directory>
+ </pre>
+</div>
<p>Cependant, la perte de performances sera moindre si vous
définissez cette directive dans la configuration de
@@ -239,9 +240,8 @@ Includes - SSI)</a></li>
<p>L'utilisation des fichiers <code>.htaccess</code> peut être
entièrement désactivée en définissant la directive <code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code> à <code>none</code> :</p>
- <div class="example"><p><code>
- AllowOverride None
- </code></p></div>
+ <pre class="prettyprint lang-config">AllowOverride None</pre>
+
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="how" id="how">Comment sont appliquées les directives ?</a></h2>
@@ -266,9 +266,8 @@ Includes - SSI)</a></li>
<p>Dans le répertoire <code>/www/htdocs/exemple1</code> se trouve un
fichier <code>.htaccess</code> contenant ce qui suit :</p>
- <div class="example"><p><code>
- Options +ExecCGI
- </code></p></div>
+ <pre class="prettyprint lang-config">Options +ExecCGI</pre>
+
<p>Note : "<code>AllowOverride Options</code>" doit être présent
pour permettre l'utilisation de la directive "<code class="directive"><a href="../mod/core.html#options">Options</a></code>" dans les fichiers
@@ -278,9 +277,8 @@ Includes - SSI)</a></li>
trouve un fichier <code>.htaccess</code> contenant ce qui suit
:</p>
- <div class="example"><p><code>
- Options Includes
- </code></p></div>
+ <pre class="prettyprint lang-config">Options Includes</pre>
+
<p>Ainsi, à cause de ce second fichier <code>.htaccess</code> du
répertoire <code>/www/htdocs/exemple1/exemple2</code>, l'exécution
@@ -304,19 +302,16 @@ Includes - SSI)</a></li>
définition de toute autre option dans les fichiers
<code>.htaccess</code>, vous pouvez utiliser :</p>
- <div class="example"><p><code>
-<Directory /www/htdocs><br />
-<span class="indent">
-Allowoverride All<br />
-</span>
-</Directory><br />
-<br />
-<Location /><br />
-<span class="indent">
-Options +IncludesNoExec -ExecCGI<br />
-</span>
+ <pre class="prettyprint lang-config">
+<Directory /www/htdocs>
+ Allowoverride All
+</Directory>
+
+<Location />
+ Options +IncludesNoExec -ExecCGI<br />
</Location>
- </code></p></div>
+ </pre>
+
<div class="note">Dans cet exemple, on considère que le chemin défini par la
directive <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> est
@@ -345,13 +340,14 @@ Options +IncludesNoExec -ExecCGI<br />
<p>Contenu du fichier <code>.htaccess</code> :</p>
- <div class="example"><p><code>
- AuthType Basic<br />
- AuthName "Password Required"<br />
- AuthUserFile /www/passwords/password.file<br />
- AuthGroupFile /www/passwords/group.file<br />
- Require Group admins
- </code></p></div>
+ <pre class="prettyprint lang-config">
+AuthType Basic
+AuthName "Password Required"
+AuthUserFile /www/passwords/password.file
+AuthGroupFile /www/passwords/group.file
+Require Group admins
+ </pre>
+
<p>Notez que <code>AllowOverride AuthConfig</code> doit être présent
pour que ces directives produisent leur effet.</p>
@@ -370,11 +366,12 @@ Includes - SSI)</a></h2>
placées dans un fichier <code>.htaccess</code> enregistré dans le
répertoire considéré :</p>
- <div class="example"><p><code>
- Options +Includes<br />
- AddType text/html shtml<br />
- AddHandler server-parsed shtml
- </code></p></div>
+ <pre class="prettyprint lang-config">
+Options +Includes
+AddType text/html shtml
+AddHandler server-parsed shtml
+ </pre>
+
<p>Notez que <code>AllowOverride Options</code> et <code>AllowOverride
FileInfo</code> doivent être tous les deux présents pour que ces
@@ -391,19 +388,21 @@ Includes - SSI)</a></h2>
dans un répertoire particulier. Pour y parvenir, vous pouvez
utiliser la configuration suivante :</p>
- <div class="example"><p><code>
- Options +ExecCGI<br />
- AddHandler cgi-script cgi pl
- </code></p></div>
+ <pre class="prettyprint lang-config">
+Options +ExecCGI
+AddHandler cgi-script cgi pl
+ </pre>
+
<p>Alternativement, si vous souhaitez que tous les fichiers d'un
répertoire donné soient considérés comme des programmes CGI, vous
pouvez utiliser la configuration suivante :</p>
- <div class="example"><p><code>
- Options +ExecCGI<br />
- SetHandler cgi-script
- </code></p></div>
+ <pre class="prettyprint lang-config">
+Options +ExecCGI
+SetHandler cgi-script
+ </pre>
+
<p>Notez que <code>AllowOverride Options</code> et <code>AllowOverride
FileInfo</code> doivent être tous les deux présents pour que ces
@@ -434,7 +433,7 @@ Includes - SSI)</a></h2>
<p>Par contre, si vous obtenez des erreurs de serveur lorsque vous
tentez d'accéder à des documents, consultez votre journal des
- erreurs d'Apache. Il vous indiquera probablement que la directive
+ erreurs de httpd. Il vous indiquera probablement que la directive
utilisée dans votre fichier <code>.htaccess</code> n'est pas
permise.</p>
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.fr?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.fr (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.fr Fri May 4 15:45:05 2012
@@ -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 : 1330277 -->
+<!-- English Revision: 1330277:1333989 (outdated) -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.ja
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.ja?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.ja [utf-8] (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.ja [utf-8] Fri May 4 15:45:05 2012
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 574882:1031040 (outdated) -->
+<!-- English Revision: 574882:1333989 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.ko
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.ko?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.ko [euc-kr] (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.ko [euc-kr] Fri May 4 15:45:05 2012
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='EUC-KR' ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
-<!-- English Revision: 151408:1031040 (outdated) -->
+<!-- English Revision: 151408:1333989 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.meta
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.meta?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.meta (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.meta Fri May 4 15:45:05 2012
@@ -8,7 +8,7 @@
<variants>
<variant>en</variant>
- <variant>fr</variant>
+ <variant outdated="yes">fr</variant>
<variant outdated="yes">ja</variant>
<variant outdated="yes">ko</variant>
<variant outdated="yes">pt-br</variant>
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.pt-br
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.pt-br?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.pt-br (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/htaccess.xml.pt-br Fri May 4 15:45:05 2012
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.pt-br.xsl"?>
-<!-- English Revision: 151408:1031040 (outdated) -->
+<!-- English Revision: 151408:1333989 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.html.en?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.html.en (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.html.en Fri May 4 15:45:05 2012
@@ -68,9 +68,8 @@
assumed to be a directory path relative to the home directory of the
specified user. Given this configuration:</p>
- <div class="example"><p><code>
- UserDir public_html
- </code></p></div>
+ <pre class="prettyprint lang-config">UserDir public_html</pre>
+
<p>the URL <code>http://example.com/~rbowen/file.html</code> will be
translated to the file path
@@ -80,9 +79,8 @@
constructed using that path, plus the username specified. Given this
configuration:</p>
- <div class="example"><p><code>
- UserDir /var/html
- </code></p></div>
+ <pre class="prettyprint lang-config">UserDir /var/html</pre>
+
<p>the URL <code>http://example.com/~rbowen/file.html</code> will be
translated to the file path <code>/var/html/rbowen/file.html</code></p>
@@ -91,9 +89,8 @@
in which the asterisk is replaced with the username. Given this
configuration:</p>
- <div class="example"><p><code>
- UserDir /var/www/*/docs
- </code></p></div>
+ <pre class="prettyprint lang-config">UserDir /var/www/*/docs</pre>
+
<p>the URL <code>http://example.com/~rbowen/file.html</code> will be
translated to the file path
@@ -101,9 +98,8 @@
<p>Multiple directories or directory paths can also be set.</p>
- <div class="example"><p><code>
- UserDir public_html /var/html
- </code></p></div>
+ <pre class="prettyprint lang-config">UserDir public_html /var/html</pre>
+
<p>For the URL <code>http://example.com/~rbowen/file.html</code>,
Apache will search for <code>~rbowen</code>. If it isn't found,
@@ -118,9 +114,8 @@
<p>The <code class="directive"><a href="../mod/mod_userdir.html#userdir">UserDir</a></code> directive can be
used to redirect user directory requests to external URLs.</p>
- <div class="example"><p><code>
- UserDir http://example.org/users/*/
- </code></p></div>
+ <pre class="prettyprint lang-config">UserDir http://example.org/users/*/</pre>
+
<p>The above example will redirect a request for
<code>http://example.com/~bob/abc.html</code> to
@@ -134,19 +129,19 @@
<p>Using the syntax shown in the UserDir documentation, you can restrict
what users are permitted to use this functionality:</p>
- <div class="example"><p><code>
- UserDir disabled root jro fish
- </code></p></div>
+ <pre class="prettyprint lang-config">UserDir disabled root jro fish</pre>
+
<p>The configuration above will enable the feature for all users
except for those listed in the <code>disabled</code> statement.
You can, likewise, disable the feature for all but a few users by
using a configuration like the following:</p>
- <div class="example"><p><code>
+ <pre class="prettyprint lang-config">
UserDir disabled<br />
UserDir enabled rbowen krietz
- </code></p></div>
+ </pre>
+
<p>See <code class="directive"><a href="../mod/mod_userdir.html#userdir">UserDir</a></code>
documentation for additional examples.</p>
@@ -161,12 +156,13 @@
directive to make a particular subdirectory of a user's home directory
cgi-enabled.</p>
- <div class="example"><p><code>
- <Directory /home/*/public_html/cgi-bin/><br />
- Options ExecCGI<br />
- SetHandler cgi-script<br />
- </Directory>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<Directory /home/*/public_html/cgi-bin/>
+ Options ExecCGI
+ SetHandler cgi-script
+</Directory>
+ </pre>
+
<p>Then, presuming that <code>UserDir</code> is set to
<code>public_html</code>, a cgi program <code>example.cgi</code>
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.html.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.html.fr?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.html.fr (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.html.fr Fri May 4 15:45:05 2012
@@ -27,6 +27,8 @@
<a href="../ko/howto/public_html.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> |
<a href="../tr/howto/public_html.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p>
</div>
+<div class="outofdate">Cette traduction peut être périmée. Vérifiez la version
+ anglaise pour les changements récents.</div>
<p>Sur les systèmes multi-utilisateurs, on peut permettre à chaque
utilisateur d'avoir un site web dans son répertoire home à l'aide de la
@@ -76,9 +78,8 @@ avec le système de fichiers</a></li></u
interprété comme chemin relatif au répertoire home de l'utilisateur
considéré. Par exemple, avec cette configuration :</p>
- <div class="example"><p><code>
- UserDir public_html
- </code></p></div>
+ <pre class="prettyprint lang-config">UserDir public_html</pre>
+
<p>l'URL <code>http://example.com/~rbowen/fichier.html</code>
correspondra au chemin fichier
@@ -88,9 +89,8 @@ avec le système de fichiers</a></li></u
sera construit en utilisant ce chemin, suivi du nom de l'utilisateur
considéré. Par exemple, avec cette configuration :</p>
- <div class="example"><p><code>
- UserDir /var/html
- </code></p></div>
+ <pre class="prettyprint lang-config">UserDir /var/html</pre>
+
<p>l'URL <code>http://example.com/~rbowen/fichier.html</code>
correspondra au chemin fichier
@@ -100,9 +100,8 @@ avec le système de fichiers</a></li></u
remplacé par le nom de l'utilisateur dans le chemin du fichier
correspondant. Par exemple, avec cette configuration :</p>
- <div class="example"><p><code>
- UserDir /var/www/*/docs
- </code></p></div>
+ <pre class="prettyprint lang-config">UserDir /var/www/*/docs</pre>
+
<p>l'URL <code>http://example.com/~rbowen/fichier.html</code>
correspondra au chemin fichier
@@ -111,9 +110,8 @@ avec le système de fichiers</a></li></u
<p>On peut aussi définir plusieurs répertoires ou chemins de
répertoires.</p>
- <div class="example"><p><code>
- UserDir public_html /var/html
- </code></p></div>
+ <pre class="prettyprint lang-config">UserDir public_html /var/html</pre>
+
<p>Avec l'URL <code>http://example.com/~rbowen/fichier.html</code>,
Apache va rechercher <code>~rbowen</code>. S'il ne le trouve pas,
@@ -128,9 +126,8 @@ avec le système de fichiers</a></li></u
<p>On peut utiliser la directive <code class="directive"><a href="../mod/mod_userdir.html#userdir">UserDir</a></code> pour rediriger les requêtes
relatives aux répertoires utilisateurs vers des URLs externes.</p>
- <div class="example"><p><code>
- UserDir http://exemple.org/users/*/
- </code></p></div>
+ <pre class="prettyprint lang-config">UserDir http://example.org/users/*/</pre>
+
<p>L'exemple ci-dessus va rediriger une requête pour
<code>http://example.com/~bob/abc.html</code> vers
@@ -145,9 +142,8 @@ avec le système de fichiers</a></li></u
vous pouvez définir quels utilisateurs sont autorisés à utiliser
cette fonctionnalité :</p>
- <div class="example"><p><code>
- UserDir disabled root jro fish
- </code></p></div>
+ <pre class="prettyprint lang-config">UserDir disabled root jro fish</pre>
+
<p>La configuration ci-dessus va autoriser l'utilisation de la
fonctionnalité pour tous les utilisateurs, à l'exception de ceux
@@ -156,10 +152,11 @@ avec le système de fichiers</a></li></u
utilisateurs sauf certains d'entre eux en utilisant une
configuration du style :</p>
- <div class="example"><p><code>
+ <pre class="prettyprint lang-config">
UserDir disabled<br />
UserDir enabled rbowen krietz
- </code></p></div>
+ </pre>
+
<p>Vous trouverez d'autres exemples dans la documentation de
<code class="directive"><a href="../mod/mod_userdir.html#userdir">UserDir</a></code>.</p>
@@ -173,12 +170,13 @@ avec le système de fichiers</a></li></u
vous pouvez utiliser une section <code class="directive"><a href="../mod/core.html#directory"><Directory></a></code> pour activer CGI dans un
sous-répertoire particulier d'un répertoire home utilisateur.</p>
- <div class="example"><p><code>
- <Directory /home/*/public_html/cgi-bin/><br />
- Options ExecCGI<br />
- SetHandler cgi-script<br />
- </Directory>
- </code></p></div>
+ <pre class="prettyprint lang-config">
+<Directory /home/*/public_html/cgi-bin/>
+ Options ExecCGI
+ SetHandler cgi-script
+</Directory>
+ </pre>
+
<p>Avec la configuration ci-dessus, et en supposant que
<code>UserDir</code> est défini à <code>public_html</code>, un
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.html.tr.utf8
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.html.tr.utf8?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.html.tr.utf8 [utf-8] (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.html.tr.utf8 [utf-8] Fri May 4 15:45:05 2012
@@ -27,6 +27,7 @@
<a href="../ko/howto/public_html.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> |
<a href="../tr/howto/public_html.html" title="Türkçe"> tr </a></p>
</div>
+<div class="outofdate">Bu çeviri güncel olmayabilir. Son değişiklikler için İngilizce sürüm geçerlidir.</div>
<p>Çok kullanıcılı sistemlerde, <code class="directive"><a href="../mod/mod_userdir.html#userdir">UserDir</a></code> yönergesi ile her kullanıcının kendi ev dizininde
bir sitesi olması sağlanabilir.
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.fr?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.fr (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.fr Fri May 4 15:45:05 2012
@@ -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 : 1330277 -->
+<!-- English Revision: 1330277:1333989 (outdated) -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.ja
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.ja?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.ja [utf-8] (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.ja [utf-8] Fri May 4 15:45:05 2012
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 659902:1174747 (outdated) -->
+<!-- English Revision: 659902:1333989 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.ko
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.ko?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.ko [euc-kr] (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.ko [euc-kr] Fri May 4 15:45:05 2012
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='EUC-KR' ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
-<!-- English Revision: 151408:1174747 (outdated) -->
+<!-- English Revision: 151408:1333989 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.meta
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.meta?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.meta (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.meta Fri May 4 15:45:05 2012
@@ -8,9 +8,9 @@
<variants>
<variant>en</variant>
- <variant>fr</variant>
+ <variant outdated="yes">fr</variant>
<variant outdated="yes">ja</variant>
<variant outdated="yes">ko</variant>
- <variant>tr</variant>
+ <variant outdated="yes">tr</variant>
</variants>
</metafile>
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.tr
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.tr?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.tr [utf-8] (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/public_html.xml.tr [utf-8] Fri May 4 15:45:05 2012
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.tr.xsl"?>
-<!-- English Revision: 1174747 -->
+<!-- English Revision: 1174747:1333989 (outdated) -->
<!-- =====================================================
Translated by: Nilgün Belma Bugüner <nilgun belgeler.org>
Reviewed by: Orhan Berent <berent belgeler.org>
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/ssi.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/ssi.html.en?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/ssi.html.en (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/ssi.html.en Fri May 4 15:45:05 2012
@@ -80,9 +80,10 @@ existing HTML documents.</p>
<p>To permit SSI on your server, you must have the following
directive either in your <code>httpd.conf</code> file, or in a
<code>.htaccess</code> file:</p>
-<div class="example"><p><code>
+<pre class="prettyprint lang-config">
Options +Includes
-</code></p></div>
+</pre>
+
<p>This tells Apache that you want to permit files to be parsed
for SSI directives. Note that most configurations contain
@@ -96,10 +97,11 @@ existing HTML documents.</p>
do this. You can tell Apache to parse any file with a
particular file extension, such as <code>.shtml</code>, with
the following directives:</p>
-<div class="example"><p><code>
+<pre class="prettyprint lang-config">
AddType text/html .shtml<br />
AddOutputFilter INCLUDES .shtml
-</code></p></div>
+</pre>
+
<p>One disadvantage to this approach is that if you wanted to
add SSI directives to an existing page, you would have to
@@ -108,9 +110,10 @@ existing HTML documents.</p>
directives would be executed.</p>
<p>The other method is to use the <code class="directive"><a href="../mod/mod_include.html#xbithack">XBitHack</a></code> directive:</p>
-<div class="example"><p><code>
+<pre class="prettyprint lang-config">
XBitHack on
-</code></p></div>
+</pre>
+
<p><code class="directive"><a href="../mod/mod_include.html#xbithack">XBitHack</a></code>
tells Apache to parse files for SSI
@@ -431,10 +434,11 @@ modified?</a></h3>
<p>In your configuration file, you could put the following
line:</p>
-<div class="example"><p><code>
+<pre class="prettyprint lang-config">
BrowserMatchNoCase macintosh Mac<br />
BrowserMatchNoCase MSIE InternetExplorer
-</code></p></div>
+</pre>
+
<p>This will set environment variables ``Mac'' and
``InternetExplorer'' to true, if the client is running Internet
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/ssi.html.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/ssi.html.fr?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/ssi.html.fr (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/ssi.html.fr Fri May 4 15:45:05 2012
@@ -28,6 +28,8 @@
<a href="../ja/howto/ssi.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="../ko/howto/ssi.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
</div>
+<div class="outofdate">Cette traduction peut être périmée. Vérifiez la version
+ anglaise pour les changements récents.</div>
<p>Les SSI permettent d'ajouter du contenu dynamique à des documents
HTML préexistants.</p>
@@ -84,9 +86,10 @@ HTML préexistants.</p>
devez ajouter la directive suivante dans votre fichier
<code>httpd.conf</code>, ou dans un fichier <code>.htaccess</code>
:</p>
-<div class="example"><p><code>
+<pre class="prettyprint lang-config">
Options +Includes
-</code></p></div>
+</pre>
+
<p>Cette directive indique à Apache que vous désirez permettre la
recherche de directives SSI lors de l'interprétation des fichiers.
@@ -101,10 +104,11 @@ HTML préexistants.</p>
directives SSI. Vous devez indiquer à Apache quels fichiers seront
concernés. Vous pouvez y parvenir en indiquant une extension, comme
<code>.shtml</code>, à l'aide des directives suivantes :</p>
-<div class="example"><p><code>
+<pre class="prettyprint lang-config">
AddType text/html .shtml<br />
AddOutputFilter INCLUDES .shtml
-</code></p></div>
+</pre>
+
<p>Un des désavantages de cette approche réside dans le fait que si
vous voulez ajouter des directives SSI à une page préexistante, vous
@@ -114,9 +118,10 @@ HTML préexistants.</p>
SSI qu'elle contient soient traitées.</p>
<p>Une autre méthode consiste à utiliser la directive <code class="directive"><a href="../mod/mod_include.html#xbithack">XBitHack</a></code> :</p>
-<div class="example"><p><code>
+<pre class="prettyprint lang-config">
XBitHack on
-</code></p></div>
+</pre>
+
<p>La directive <code class="directive"><a href="../mod/mod_include.html#xbithack">XBitHack</a></code>
indique à Apache qu'il doit rechercher des directivves SSI dans les
@@ -440,10 +445,11 @@ HTML préexistants.</p>
<p>Vous pouvez ajouter les lignes suivantes dans votre fichier de
configuration :</p>
-<div class="example"><p><code>
+<pre class="prettyprint lang-config">
BrowserMatchNoCase macintosh Mac<br />
BrowserMatchNoCase MSIE InternetExplorer
-</code></p></div>
+</pre>
+
<p>Ces lignes définissent les variables d'environnement "Mac" et
"InternetExplorer" à true, si le client utilise InternetExplorer sur
Modified: httpd/httpd/branches/2.4.x/docs/manual/howto/ssi.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/howto/ssi.xml.fr?rev=1334039&r1=1334038&r2=1334039&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/howto/ssi.xml.fr (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/howto/ssi.xml.fr Fri May 4 15:45:05 2012
@@ -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 : 1331486 -->
+<!-- English Revision: 1331486:1333989 (outdated) -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->