aboutsummaryrefslogtreecommitdiffstats
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
parent63f0333cf8e2832126c225f464e6613bb40693bd (diff)
downloadpfsense-packages-fb0db804efaa6cb7fedb22c961c1c5c665dd6374.tar.gz
pfsense-packages-fb0db804efaa6cb7fedb22c961c1c5c665dd6374.tar.bz2
pfsense-packages-fb0db804efaa6cb7fedb22c961c1c5c665dd6374.zip
Use correct field name
-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>