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