aboutsummaryrefslogtreecommitdiffstats
path: root/config/varnish64/varnish.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/varnish64/varnish.inc')
-rw-r--r--config/varnish64/varnish.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/varnish64/varnish.inc b/config/varnish64/varnish.inc
index d69d6abd..1a1cd0a3 100644
--- a/config/varnish64/varnish.inc
+++ b/config/varnish64/varnish.inc
@@ -113,7 +113,8 @@ EOF;
$urlmappings .= "else ";
$urlmappings = <<<EOAU
if (req.http.host == "{$urlmapping['url']}") {
- set req.backend = {$urlmapping['backend']};
+ set req.backend = "{$urlmapping['backend']}";
+ set req.http.host = "{$urlmapping['url']}";
}
EOAU;
$isfirst = false;