aboutsummaryrefslogtreecommitdiffstats
path: root/config/varnish64/varnish.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-04-27 22:21:50 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-04-27 22:21:50 -0400
commitfb0db804efaa6cb7fedb22c961c1c5c665dd6374 (patch)
treeee254ef35da749c46fc803cacc51051c33618046 /config/varnish64/varnish.inc
parent63f0333cf8e2832126c225f464e6613bb40693bd (diff)
downloadpfsense-packages-fb0db804efaa6cb7fedb22c961c1c5c665dd6374.tar.gz
pfsense-packages-fb0db804efaa6cb7fedb22c961c1c5c665dd6374.tar.bz2
pfsense-packages-fb0db804efaa6cb7fedb22c961c1c5c665dd6374.zip
Use correct field name
Diffstat (limited to 'config/varnish64/varnish.inc')
-rw-r--r--config/varnish64/varnish.inc4
1 files changed, 2 insertions, 2 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