aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/varnish64/varnish.inc4
-rw-r--r--config/varnish64/varnish_backends.xml4
2 files changed, 4 insertions, 4 deletions
diff --git a/config/varnish64/varnish.inc b/config/varnish64/varnish.inc
index d2d10e2c..33525bdf 100644
--- a/config/varnish64/varnish.inc
+++ b/config/varnish64/varnish.inc
@@ -129,7 +129,7 @@ EOAU;
$urlmappings .= <<<EOAU
if (req.http.host == "{$url['urlmapping']}") {
set req.backend = {$urlmapping['backendname']}BACKEND;
- set req.http.host = "{$urlmapping['urlmapping']}";
+ set req.http.host = "{$url['urlmapping']}";
}
EOAU;
$isfirst = false;
@@ -421,7 +421,7 @@ function varnish_sync_on_changes() {
$previous_ip = "";
$x=0;
$sh = $config['installedpackages']['varnishsync']['config'][0];
- for($x=1; $x<5; $x++) {
+ for($x=1; $x<isset($sh[$x]); $x++) {
if($x > 1)
$counter = $x;
else
diff --git a/config/varnish64/varnish_backends.xml b/config/varnish64/varnish_backends.xml
index 68736c44..d3bd825e 100644
--- a/config/varnish64/varnish_backends.xml
+++ b/config/varnish64/varnish_backends.xml
@@ -171,8 +171,8 @@
<type>input</type>
</field>
<field>
- <fielddescr>none</fielddescr>
- <fieldname>none</fieldname>
+ <fielddescr>Map URLs</fielddescr>
+ <fieldname>MapURLs</fieldname>
<type>rowhelper</type>
<rowhelper>
<rowhelperfield>