From caad1313ca10c48320e2fea599aa0fcf9aefbf01 Mon Sep 17 00:00:00 2001 From: btatu Date: Thu, 28 Sep 2017 14:31:28 +0200 Subject: [PATCH] remplace les urls du client (haproxy) --- HowtoHaproxy.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/HowtoHaproxy.md b/HowtoHaproxy.md index 85acda79..5700dcc8 100644 --- a/HowtoHaproxy.md +++ b/HowtoHaproxy.md @@ -362,10 +362,12 @@ http-request auth realm Texte if !AuthOkayPourMonSite ### Redirection d'un domaine ~~~ -acl promo hdr(host) -i promo-pneus.autoclean38.fr -redirect prefix http://auto-clean.yepgarage.com code 301 if promo +acl domaine hdr(host) -i domaine1.com +redirect prefix http://www.domaine2.com code 301 if domaine ~~~ +Ainsi, il fait la redirection si l'acl domaine correspond au domaine spécifié. + ## Debug ~~~