@@ -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
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 :