diff --git a/roles/varnish/files/proxy.vcl b/roles/varnish/files/proxy.vcl index 0deb289b3b..37ca3da7ca 100644 --- a/roles/varnish/files/proxy.vcl +++ b/roles/varnish/files/proxy.vcl @@ -251,9 +251,9 @@ sub vcl_recv { set req.url = regsub(req.url, "\?.*", ""); } } - if (req.http.X-Forwarded-Server ~ "^koschei.fedoraproject.org") { + if (req.url ~ "^/koschei") { set req.backend_hint = koschei; - if (req.url ~ "^/static/") { + if (req.url ~ "^/koschei/static/") { unset req.http.cookie; set req.url = regsub(req.url, "\?.*", ""); }