Thanks Tristan. 

So typically I’d say to add to every single http frontend: 
http-request set-header X-Forwarded-For %[src] 
http-request set-header X-Forwarded-Host %[hdr(Host)] 
http-request set-header X-Forwarded-Proto %[ssl_fc,iif(https,http)] 
http-request set-header Forwarded 
"by=${HOSTNAME};for=%[src];host=%[hdr(Host)];proto=%[ssl_fc,iif(https,http)]" 

Almost what I already did :) 
What about using %[hdr(host,1)] to forcefully use the first Host header if 
multiple headers are sent ? 

Ionel 

--

232 avenue Napoleon BONAPARTE 92500 RUEIL MALMAISON

Capital EUR 219 300,00 - RCS Nanterre B 408 832 301 - TVA FR 09 408 832 301

Reply via email to