Hi,

haproxy 1.8.10



using this config no header is added to client from haproxy:



acl is_test hdr_dom(host) -i www.url1.url2.com

http-response add-header X-Custom-Header YES if is_test



We are sure “acl is_test hdr_dom(host) -i 
www.url1.url2.com<http://www.url1.url2.com>” is match as ssl redirect works for 
the same acl:



redirect scheme https code 301 if !is_test !{ ssl_fc }

if we change to:



http-response add-header X-Custom-Header YES if !is_test



haproxy add this header to all response regardless also for request from 
www.url1.url2.com








[APK]

[Unione]


mlist


APKAPPA s.r.l. sede legale Via F. Albani, 21 20149 Milano | p.iva/vat no. 
IT-08543640158
sede amministrativa e operativa Reggio Emilia (RE) via M. K. Gandhi, 24/A 42123 
- sede operativa Magenta (MI) via Milano 89/91 20013
www.apkappa.it<http://www.apkappa.it>






Ai sensi e per gli effetti della Legge sulla tutela della riservatezza 
personale (DL.gs. 196/03 e collegate), questa mail è destinata unicamente alle 
persone sopra indicate e le informazioni in essa contenute sono da considerarsi 
strettamente riservate.
This email is confidential, do not use the contents for any purpose whatsoever 
nor disclose them to anyone else. If you are not the intended recipient, you 
should not copy, modify, distribute or take any action in reliance on it. If 
you have received this email in error, please notify the sender and delete this 
email from your system.





Reply via email to