on utilise linux-image-cloud-amd64 sur les VMs
This commit is contained in:
parent
474318687e
commit
1d8134f2d6
|
@ -293,3 +293,11 @@ ADMIN ALL=NOPASSWD: MAINT
|
|||
~~~
|
||||
trap "sudo /usr/share/scripts/evomaintenance.sh" 0
|
||||
~~~
|
||||
|
||||
* Si l'on est sur une machine virtuelle (VM), on remplace le kernel par défaut par un kernel « Cloud » :
|
||||
|
||||
~~~
|
||||
# apt install linux-image-cloud-amd64
|
||||
# apt remove linux-image-amd64
|
||||
# reboot
|
||||
~~~
|
||||
|
|
|
@ -178,6 +178,14 @@ sub vcl_backend_response {
|
|||
set beresp.ttl = 3600s;
|
||||
}
|
||||
}
|
||||
|
||||
sub vcl_deliver {
|
||||
if (resp.http.X-Varnish ~ "[0-9]+ +[0-9]+") {
|
||||
set resp.http.X-Cache = "HIT";
|
||||
} else {
|
||||
set resp.http.X-Cache = "MISS";
|
||||
}
|
||||
}
|
||||
~~~
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue