From 39b0621b80708dd8442e74556d82326e5fbd172d Mon Sep 17 00:00:00 2001 From: btatu Date: Thu, 16 Jul 2020 11:22:37 +0200 Subject: [PATCH] Ajout de ProxyPassMatch --- HowtoApache.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/HowtoApache.md b/HowtoApache.md index 2fafe518..366e70ea 100644 --- a/HowtoApache.md +++ b/HowtoApache.md @@ -407,8 +407,7 @@ AddOutputFilterByType DEFLATE application/json ### mod_proxy_http Le module [proxy](https://httpd.apache.org/docs/2.4/mod/mod_proxy.html) -permet d'utiliser Apache en tant que proxy, notamment reverse-proxy -HTTP : +permet d'utiliser Apache en tant que proxy, notamment reverse-proxy HTTP : ~~~ # a2enmod proxy_http @@ -449,6 +448,21 @@ ProxyPassReverse / https://192.0.2.17/ ~~~ +S'il y a besoin d'appliquer des règles spécifiques tel que des Alias avant que les requêtes soient proxifiés: + +~~~ +Alias /dossier/ /home/$USER/dossier/ + + Options +SymLinksIfOwnerMatch +Indexes + Allow from All + + +ProxyPreserveHost On +ProxyPassMatch ^/dossier ! +ProxyPass / http://127.0.0.1:3504/ +ProxyPassReverse / http://127.0.0.1:3504/ +~~~ + ### mod_rpaf / mod_remoteip