Skip to content
Snippets Groups Projects
Commit 4614cba2 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/gentner#2471 Update Varnish configuration

parent 25896eee
No related branches found
No related tags found
No related merge requests found
......@@ -124,6 +124,16 @@ sub vcl_recv {
return (pass);
}
# Health Check
if (req.url == "/varnishcheck") {
return(synth(751, "OK!"));
if (std.healthy(req.backend_hint)) {
return(synth(751, "OK!"));
} else {
return(synth(752, "FAILED!"));
}
}
# Some generic URL manipulation, useful for all templates that follow
# First remove the Google Analytics added parameters, useless for our backend
if (req.url ~ "(\?|&)(utm_source|utm_medium|utm_campaign|utm_content|gclid|cx|ie|cof|siteurl)=") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment