From 6cd90c00feb08be3cc9feabe2c7b4673c59d1627 Mon Sep 17 00:00:00 2001 From: Lucien Gentis Date: Sat, 2 May 2015 16:37:06 +0000 Subject: [PATCH] XML updates. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1677330 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_authz_owner.xml.fr | 14 ++--- docs/manual/mod/mod_cern_meta.xml.fr | 2 +- docs/manual/mod/mod_cgid.xml.fr | 2 +- docs/manual/mod/mod_dialup.xml.fr | 10 ++-- docs/manual/mod/mod_example_hooks.xml.fr | 4 +- docs/manual/mod/mod_ext_filter.xml.fr | 10 ++-- docs/manual/mod/mod_log_config.xml.ja | 2 +- docs/manual/mod/mod_log_config.xml.ko | 2 +- docs/manual/mod/mod_log_config.xml.tr | 2 +- docs/manual/mod/mod_proxy.xml.fr | 67 ++++++++++++------------ 10 files changed, 58 insertions(+), 57 deletions(-) diff --git a/docs/manual/mod/mod_authz_owner.xml.fr b/docs/manual/mod/mod_authz_owner.xml.fr index 1a9acfdb87..f040145ab3 100644 --- a/docs/manual/mod/mod_authz_owner.xml.fr +++ b/docs/manual/mod/mod_authz_owner.xml.fr @@ -1,7 +1,7 @@ - + @@ -96,11 +96,11 @@ fichiers smith.

-<Directory /home/*/public_html/private> +<Directory "/home/*/public_html/private"> AuthType Basic - AuthName MyPrivateFiles + AuthName "MyPrivateFiles" AuthBasicProvider dbm - AuthDBMUserFile /usr/local/apache2/etc/.htdbm-all + AuthDBMUserFile "/usr/local/apache2/etc/.htdbm-all" Require file-owner </Directory> @@ -121,14 +121,14 @@ fichiers répertoires project-foo de chacun d'entre eux.

-<Directory /home/*/public_html/project-foo> +<Directory "/home/*/public_html/project-foo"> AuthType Basic AuthName "Project Foo Files" AuthBasicProvider dbm # combined user/group database - AuthDBMUserFile /usr/local/apache2/etc/.htdbm-all - AuthDBMGroupFile /usr/local/apache2/etc/.htdbm-all + AuthDBMUserFile "/usr/local/apache2/etc/.htdbm-all" + AuthDBMGroupFile "/usr/local/apache2/etc/.htdbm-all" Satisfy All Require file-group diff --git a/docs/manual/mod/mod_cern_meta.xml.fr b/docs/manual/mod/mod_cern_meta.xml.fr index d360901961..99c8b8adda 100644 --- a/docs/manual/mod/mod_cern_meta.xml.fr +++ b/docs/manual/mod/mod_cern_meta.xml.fr @@ -1,7 +1,7 @@ - + diff --git a/docs/manual/mod/mod_cgid.xml.fr b/docs/manual/mod/mod_cgid.xml.fr index 5b4d61fe30..61885c5fdf 100644 --- a/docs/manual/mod/mod_cgid.xml.fr +++ b/docs/manual/mod/mod_cgid.xml.fr @@ -1,7 +1,7 @@ - + diff --git a/docs/manual/mod/mod_dialup.xml.fr b/docs/manual/mod/mod_dialup.xml.fr index 074586f1aa..3ab854f2bc 100644 --- a/docs/manual/mod/mod_dialup.xml.fr +++ b/docs/manual/mod/mod_dialup.xml.fr @@ -1,7 +1,7 @@ - + @@ -41,8 +41,8 @@ modems. Ainsi, il est possible de naviguer sur votre site avec un modem 56k V.92 en positionnant une configuration de ce type :

-<Location /mysite> - ModemStandard V.92 +<Location "/mysite"> + ModemStandard "V.92" </Location> @@ -67,8 +67,8 @@ client.

souhaitez simuler.

-<Location /mysite> - ModemStandard V.26bis +<Location "/mysite"> + ModemStandard "V.26bis" </Location> diff --git a/docs/manual/mod/mod_example_hooks.xml.fr b/docs/manual/mod/mod_example_hooks.xml.fr index 062c9a1d25..b8f12c2add 100644 --- a/docs/manual/mod/mod_example_hooks.xml.fr +++ b/docs/manual/mod/mod_example_hooks.xml.fr @@ -1,7 +1,7 @@ - + @@ -110,7 +110,7 @@

Pour activer le module example_hooks, ajoutez à votre fichier httpd.conf un bloc du style :

-<Location /example-hooks-info> +<Location "/example-hooks-info"> SetHandler example-hooks-handler </Location> diff --git a/docs/manual/mod/mod_ext_filter.xml.fr b/docs/manual/mod/mod_ext_filter.xml.fr index 69834d44df..f70bbf83d6 100644 --- a/docs/manual/mod/mod_ext_filter.xml.fr +++ b/docs/manual/mod/mod_ext_filter.xml.fr @@ -1,7 +1,7 @@ - + @@ -98,7 +98,7 @@ ExtFilterDefine c-to-html mode=output \ # la directive de mod_ext_filter qui définit le filtre externe ExtFilterDefine gzip mode=output cmd=/bin/gzip -<Location /gzipped> +<Location "/gzipped"> # directive de base permettant de traiter la sortie avec le # filtre gzip @@ -122,7 +122,7 @@ ExtFilterDefine gzip mode=output cmd=/bin/gzip ExtFilterDefine slowdown mode=output cmd=/bin/cat \ preservescontentlength -<Location /> +<Location "/"> # directive de base permettant de traiter plusieurs fois la # sortie avec le filtre slowdown # @@ -141,7 +141,7 @@ ExtFilterDefine slowdown mode=output cmd=/bin/cat \ ExtFilterDefine fixtext mode=output intype=text/html \ cmd="/bin/sed s/verdana/arial/g" -<Location /> +<Location "/"> # directive de base permettant de traiter la sortie avec le # filtre fixtext SetOutputFilter fixtext @@ -177,7 +177,7 @@ ExtFilterDefine traceafter \ cmd="/bin/tracefilter.pl /tmp/traceafter" \ EnableEnv=trace_this_client ftype=21 -<Directory /usr/local/docs> +<Directory "/usr/local/docs"> SetEnvIf Remote_Addr 192.168.1.31 trace_this_client SetOutputFilter tracebefore;deflate;traceafter </Directory> diff --git a/docs/manual/mod/mod_log_config.xml.ja b/docs/manual/mod/mod_log_config.xml.ja index 07618b1455..702d78d982 100644 --- a/docs/manual/mod/mod_log_config.xml.ja +++ b/docs/manual/mod/mod_log_config.xml.ja @@ -1,7 +1,7 @@ - + + + + @@ -168,8 +168,8 @@ Mandataire inverse -ProxyPass /foo http://foo.example.com/bar -ProxyPassReverse /foo http://foo.example.com/bar +ProxyPass "/foo" "http://foo.example.com/bar" +ProxyPassReverse "/foo" "http://foo.example.com/bar" @@ -196,7 +196,7 @@ ProxyVia On Scripts PHP et mandataire inverse -<FilesMatch \.php$> +<FilesMatch "\.php$"> SetHandler "proxy:unix:/path/to/app.sock|fcgi://localhost/" </FilesMatch> @@ -231,7 +231,7 @@ ProxyVia On - ProxyPass /example http://backend.example.com connectiontimeout=5 timeout=30 + ProxyPass "/example" "http://backend.example.com" connectiontimeout=5 timeout=30 @@ -277,8 +277,8 @@ ProxyVia On original, y compris un éventuel chemin donné :

-ProxyPass /examples http://backend.example.com/examples -ProxyPass /docs http://backend.example.com/docs +ProxyPass "/examples" "http://backend.example.com/examples" +ProxyPass "/docs" "http://backend.example.com/docs"

Dans cet exemple, deux workers différents sont définis, chacun @@ -292,8 +292,8 @@ ProxyPass /docs http://backend.example.com/docs dans le fichier de configuration. Dans l'exemple suivant,

-ProxyPass /apps http://backend.example.com/ timeout=60 -ProxyPass /examples http://backend.example.com/examples timeout=10 +ProxyPass "/apps" "http://backend.example.com/" timeout=60 +ProxyPass "/examples" "http://backend.example.com/examples" timeout=10

le second worker n'est pas vraiment créé. C'est le premier @@ -431,8 +431,8 @@ ProxyPass /examples http://backend.example.com/examples timeout=10 proxy-nokeepalive.

-<Location /buggyappserver/> - ProxyPass http://buggyappserver:7001/foo/ +<Location "/buggyappserver/"> + ProxyPass "http://buggyappserver:7001/foo/" SetEnv force-proxy-request-1.0 1 SetEnv proxy-nokeepalive 1 </Location> @@ -1004,8 +1004,8 @@ de la version 2.4.7 du serveur HTTP Apache http://example.com/ ; alors la ligne

-<Location /mirror/foo/> - ProxyPass http://backend.example.com/ +<Location "/mirror/foo/"> + ProxyPass "http://backend.example.com/" </Location> @@ -1020,7 +1020,7 @@ de la version 2.4.7 du serveur HTTP Apache href="mod_proxy_balancer.html#balancer_manager">Balancer Manager :

- ProxyPass /miroir/foo/ http://backend.example.com/ + ProxyPass "/miroir/foo/" "http://backend.example.com/" @@ -1036,17 +1036,17 @@ de la version 2.4.7 du serveur HTTP Apache du mandat inverse, comme dans l'exemple suivant :

-<Location /mirror/foo/> - ProxyPass http://backend.example.com/ +<Location "/mirror/foo/"> + ProxyPass "http://backend.example.com/" </Location> -<Location /mirror/foo/i> - ProxyPass ! +<Location "/mirror/foo/i"> + ProxyPass "!" </Location> -ProxyPass /mirror/foo/i ! -ProxyPass /mirror/foo http://backend.example.com +ProxyPass "/mirror/foo/i" "!" +ProxyPass "/mirror/foo" "http://backend.example.com"

va mandater toutes les requêtes pour /miroir/foo @@ -1105,7 +1105,7 @@ ProxyPass /mirror/foo http://backend.example.com Exemple - ProxyPass /example http://backend.example.com max=20 ttl=120 retry=300 + ProxyPass "/example" "http://backend.example.com" max=20 ttl=120 retry=300 @@ -1451,8 +1451,8 @@ ProxyPass /mirror/foo http://backend.example.com

Exemple de configuration d'un répartiteur de charge

-ProxyPass /special-area http://special.example.com smax=5 max=10 -ProxyPass / balancer://mycluster/ stickysession=JSESSIONID|jsessionid nofailover=On +ProxyPass "/special-area" "http://special.example.com" smax=5 max=10 +ProxyPass "/" "balancer://mycluster/" stickysession=JSESSIONID|jsessionid nofailover=On <Proxy balancer://mycluster> BalancerMember ajp://1.2.3.4:8009 BalancerMember ajp://1.2.3.5:8009 loadfactor=20 @@ -1464,7 +1464,7 @@ ProxyPass / balancer://mycluster/ stickysession=JSESSIONID|jsessionid nofailover

Configuration d'un serveur cible de réserve qui ne sera utilisé que si aucun autre serveur cible n'est disponible

-ProxyPass / balancer://hotcluster/ +ProxyPass "/" "balancer://hotcluster/ " <Proxy balancer://hotcluster> BalancerMember ajp://1.2.3.4:8009 loadfactor=1 BalancerMember ajp://1.2.3.5:8009 loadfactor=2 @@ -1531,8 +1531,8 @@ RewriteCond %{HTTPS} =on RewriteRule . - [E=protocol:https] RewriteRule ^/mirror/foo/(.*) %{ENV:protocol}://backend.example.com/$1 [P] -ProxyPassReverse /mirror/foo/ http://backend.example.com/ -ProxyPassReverse /mirror/foo/ https://backend.example.com/ +ProxyPassReverse "/mirror/foo/" "http://backend.example.com/" +ProxyPassReverse "/mirror/foo/" "https://backend.example.com/" @@ -1565,7 +1565,7 @@ du serveur local en utilisant des expressions rationnelles http://example.com/ ; alors

- ProxyPassMatch ^(/.*\.gif)$ http://backend.example.com/$1 + ProxyPassMatch "^(/.*\.gif)$" "http://backend.example.com/$1"

va provoquer la conversion interne de la requête locale @@ -1578,14 +1578,15 @@ du serveur local en utilisant des expressions rationnelles doit aussi l'être après). Ceci limite les correspondances que vous pouvez utiliser. Par exemple, si l'on avait utilisé

- ProxyPassMatch ^(/.*\.gif)$ http://backend.example.com:8000$1 + ProxyPassMatch "^(/.*\.gif)$" + "http://backend.example.com:8000$1"

dans l'exemple précédent, nous aurions provoqué une erreur de syntaxe au démarrage du serveur. C'est une bogue (PR 46665 dans ASF bugzilla), et il est possible de la contourner en reformulant la correspondance :

- ProxyPassMatch ^/(.*\.gif)$ http://backend.example.com:8000/$1 + ProxyPassMatch "^/(.*\.gif)$" "http://backend.example.com:8000/$1"
@@ -1661,10 +1662,10 @@ par un serveur mandaté en inverse http://example.com/ ; alors

-ProxyPass /mirror/foo/ http://backend.example.com/ -ProxyPassReverse /mirror/foo/ http://backend.example.com/ +ProxyPass "/mirror/foo/" "http://backend.example.com/" +ProxyPassReverse "/mirror/foo/" "http://backend.example.com/" ProxyPassReverseCookieDomain backend.example.com public.example.com -ProxyPassReverseCookiePath / /mirror/foo/ +ProxyPassReverseCookiePath "/" "/mirror/foo/"

ne va pas seulement provoquer la conversion interne d'une requête @@ -1758,7 +1759,7 @@ Dans l'exemple fourni avec la directive ProxyPassReverse, la directive :

- ProxyPassReverseCookiePath / /mirror/foo/ + ProxyPassReverseCookiePath "/" "/mirror/foo/"

va réécrire un cookie possédant un chemin d'arrière-plan / -- 2.50.1