diff options
Diffstat (limited to 'docs/manual/env.html.fr')
-rw-r--r-- | docs/manual/env.html.fr | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/docs/manual/env.html.fr b/docs/manual/env.html.fr index f4a8085fcf..a8c6bbe946 100644 --- a/docs/manual/env.html.fr +++ b/docs/manual/env.html.fr @@ -27,8 +27,6 @@ <a href="./ko/env.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | <a href="./tr/env.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>Deux types de variables d'environnement affectent le serveur HTTP Apache.</p> @@ -442,14 +440,14 @@ <code class="module"><a href="./mod/mod_setenvif.html">mod_setenvif</a></code> et <code class="module"><a href="./mod/mod_header.html">mod_header</a></code>, et permettant de prendre en compte ces en-têtes :</p> -<div class="example"><p><code> -# <br /> +<pre class="prettyprint lang-config"> # L'exemple suivant montre comment prendre en compte un en-tête<br /> -# Accept_Encoding non conforme envoyé par un client.<br /> -#<br /> -SetEnvIfNoCase ^Accept.Encoding$ ^(.*)$ fix_accept_encoding=$1<br /> +# Accept_Encoding non conforme envoyé par un client. +# +SetEnvIfNoCase ^Accept.Encoding$ ^(.*)$ fix_accept_encoding=$1 RequestHeader set Accept-Encoding %{fix_accept_encoding}e env=fix_accept_encoding -</code></p></div> +</pre> + @@ -461,27 +459,28 @@ RequestHeader set Accept-Encoding %{fix_accept_encoding}e env=fix_accept_encodin httpd.conf pour tenir compte de problèmes connus avec certains clients. Comme les clients concernés sont maintenant très peu utilisés, cet ajout n'est pratiquement plus nécessaire.</p> -<div class="example"><p><code> -#<br /> -# The following directives modify normal HTTP response behavior.<br /> -# The first directive disables keepalive for Netscape 2.x and browsers that<br /> -# spoof it. There are known problems with these browser implementations.<br /> -# The second directive is for Microsoft Internet Explorer 4.0b2<br /> -# which has a broken HTTP/1.1 implementation and does not properly<br /> -# support keepalive when it is used on 301 or 302 (redirect) responses.<br /> -#<br /> -BrowserMatch "Mozilla/2" nokeepalive<br /> -BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0<br /> -<br /> -#<br /> -# The following directive disables HTTP/1.1 responses to browsers which<br /> -# are in violation of the HTTP/1.0 spec by not being able to grok a<br /> -# basic 1.1 response.<br /> -#<br /> -BrowserMatch "RealPlayer 4\.0" force-response-1.0<br /> -BrowserMatch "Java/1\.0" force-response-1.0<br /> +<pre class="prettyprint lang-config"> +# +# The following directives modify normal HTTP response behavior. +# The first directive disables keepalive for Netscape 2.x and browsers that +# spoof it. There are known problems with these browser implementations. +# The second directive is for Microsoft Internet Explorer 4.0b2 +# which has a broken HTTP/1.1 implementation and does not properly +# support keepalive when it is used on 301 or 302 (redirect) responses. +# +BrowserMatch "Mozilla/2" nokeepalive +BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 + +# +# The following directive disables HTTP/1.1 responses to browsers which +# are in violation of the HTTP/1.0 spec by not being able to grok a +# basic 1.1 response. +# +BrowserMatch "RealPlayer 4\.0" force-response-1.0 +BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0 -</code></p></div> +</pre> + <h3><a name="no-img-log" id="no-img-log">Ne pas tracer les requêtes pour des images dans le fichier de @@ -492,12 +491,13 @@ BrowserMatch "JDK/1\.0" force-response-1.0 dans le fichier de trace des accès. Il peut être facilement adapté pour empêcher le traçage de répertoires particuliers, ou de requêtes en provenance de certains hôtes.</p> - <div class="example"><p><code> - SetEnvIf Request_URI \.gif image-request<br /> - SetEnvIf Request_URI \.jpg image-request<br /> - SetEnvIf Request_URI \.png image-request<br /> - CustomLog logs/access_log common env=!image-request - </code></p></div> + <pre class="prettyprint lang-config"> +SetEnvIf Request_URI \.gif image-request +SetEnvIf Request_URI \.jpg image-request +SetEnvIf Request_URI \.png image-request +CustomLog logs/access_log common env=!image-request + </pre> + <h3><a name="image-theft" id="image-theft">Prévention du "Vol d'image"</a></h3> @@ -509,18 +509,17 @@ BrowserMatch "JDK/1\.0" force-response-1.0 recommandée, mais elle peut fonctionner dans des circonstances bien définies. Nous supposons que toutes vos images sont enregistrées dans un répertoire nommé <code>/web/images</code>.</p> - <div class="example"><p><code> - SetEnvIf Referer "^http://www\.example\.com/" local_referal<br /> - # Allow browsers that do not send Referer info<br /> - SetEnvIf Referer "^$" local_referal<br /> - <Directory /web/images><br /> - <span class="indent"> - Order Deny,Allow<br /> - Deny from all<br /> - Allow from env=local_referal - </span> - </Directory> - </code></p></div> + <pre class="prettyprint lang-config"> +SetEnvIf Referer "^http://www\.example\.com/" local_referal +# Autorise les navigateurs qui n'envoient aucune information de Referer +SetEnvIf Referer "^$" local_referal +<Directory /web/images> + Order Deny,Allow + Deny from all + Allow from env=local_referal +</Directory> + </pre> + <p>Pour plus d'informations sur cette technique, voir le tutoriel sur ServerWatch @@ -539,7 +538,8 @@ to last beyond the testing phase of this system, nor do we in any way guarantee var disqus_shortname = 'httpd'; var disqus_identifier = 'http://httpd.apache.org/docs/2.4/env.html.fr'; (function(w, d) { - if (w.location.hostname.toLowerCase() == "httpd.apache.org") { + var disabled = true; + if (w.location.hostname.toLowerCase() == "httpd.apache.org" && disabled !== true) { d.write('<div id="disqus_thread"><\/div>'); var s = d.createElement('script'); s.type = 'text/javascript'; @@ -548,7 +548,7 @@ var disqus_identifier = 'http://httpd.apache.org/docs/2.4/env.html.fr'; (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); } else { - d.write('<div id="disqus_thread">Comments have been disabled for offline viewing.<\/div>'); + d.write('<div id="disqus_thread">Comments are disabled for this page at the moment.<\/div>'); } })(window, document); //--><!]]></script></div><div id="footer"> |