Varnish
Sortir un backend du pool :
varnishadm backend.set_health "nom_du_backend" sick
Valider le VLC :
varnishd -C -f /path/to/mysetup.vcl
forward l'IP du client derriere un CDN (Varnish3)
set req.http.X-Forwarded-For = regsub(req.http.X-Forwarded-For, "[, ].*$", "");
Forward de l'IP du Client derrière un reverse proxy et/ou derriere un CDN :
# forward l'IP du client
if (req.restarts == 0) {
if (req.http.x-forwarded-for) { set req.http.X-Forwarded-For = req.http.X-Forwarded-For +", "+ client.ip; }
if (req.http.x-forwarded-for)
{
set req.http.X-Forwarded-For = req.http.X-Forwarded-For +", "+ client.ip;
set req.http.X-Forwarded-For = regsuball(req.http.X-Forwarded-For, ", (127.0.0.1|ip_de_mon_proxy_1|ip_de_mon_proxy_2)", "");
}
else { set req.http.X-Forwarded-For = client.ip; }
}