From f4cce884f3c893b33cdf49f2ee444e48adab2eae Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Thu, 7 May 2015 10:27:18 +0000 Subject: [PATCH] Fix koschei url --- roles/varnish/files/proxy.vcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, "\?.*", ""); }