aboutsummaryrefslogtreecommitdiffstats
path: root/config/varnish3
diff options
context:
space:
mode:
Diffstat (limited to 'config/varnish3')
-rw-r--r--config/varnish3/varnish.inc7
-rw-r--r--config/varnish3/varnish_backends.xml4
-rw-r--r--config/varnish3/varnish_lb_directors.xml3
-rw-r--r--config/varnish3/varnish_settings.xml5
-rw-r--r--config/varnish3/varnish_sync.xml1
5 files changed, 6 insertions, 14 deletions
diff --git a/config/varnish3/varnish.inc b/config/varnish3/varnish.inc
index 983804c9..1895d214 100644
--- a/config/varnish3/varnish.inc
+++ b/config/varnish3/varnish.inc
@@ -65,8 +65,13 @@ function varnish_settings_post_validate($post, $input_errors) {
}
function varnish_lb_directors_post_validate($post, $input_errors) {
- if (preg_match("/[^a-zA-Z0-9]/", $post['directorname']))
+ if (preg_match("/[^a-zA-Z0-9]/", $post['directorname'])){
$input_errors[] = "The directorname name must only contain the characters a-Z or 0-9";
+ }
+ else{
+ if(empty($post['failover']))
+ $_POST['failover'] = $post['directorname'];
+ }
if(stristr($post['directorurl'], 'http'))
$input_errors[] = "You do not need to include the http:// string in the director URL";
if($post['grace'] && ! preg_match("/^\d+(h|m|s)$/",$post['grace']))
diff --git a/config/varnish3/varnish_backends.xml b/config/varnish3/varnish_backends.xml
index 28e7caca..58216279 100644
--- a/config/varnish3/varnish_backends.xml
+++ b/config/varnish3/varnish_backends.xml
@@ -155,7 +155,6 @@
<fields>
<field>
<fielddescr>BackendSettings</fielddescr>
- <fieldname>BackendSettings</fieldname>
<type>listtopic</type>
<name>Backend settings</name>
</field>
@@ -189,7 +188,6 @@
</field>
<field>
<fielddescr>PerformanceMetrics</fielddescr>
- <fieldname>PerformanceMetrics</fieldname>
<type>listtopic</type>
<name>Performance metrics</name>
</field>
@@ -207,7 +205,6 @@
</field>
<field>
<fielddescr>ProbeInfo</fielddescr>
- <fieldname>ProbeInfo</fieldname>
<type>listtopic</type>
<name>Probe settings</name>
</field>
@@ -250,7 +247,6 @@
</field>
<field>
<fielddescr>Mappings</fielddescr>
- <fieldname>Mappings</fieldname>
<type>listtopic</type>
<name>Backend Mappings</name>
</field>
diff --git a/config/varnish3/varnish_lb_directors.xml b/config/varnish3/varnish_lb_directors.xml
index b9d8cc24..99a945d5 100644
--- a/config/varnish3/varnish_lb_directors.xml
+++ b/config/varnish3/varnish_lb_directors.xml
@@ -137,7 +137,6 @@
<fields>
<field>
<fielddescr>DirectorSettings</fielddescr>
- <fieldname>Director Settings</fieldname>
<type>listtopic</type>
<name>Director settings</name>
</field>
@@ -209,7 +208,6 @@
</field>
<field>
<fielddescr>Backendlist</fielddescr>
- <fieldname>Backendlist</fieldname>
<type>listtopic</type>
<name>Backend Settings</name>
</field>
@@ -249,7 +247,6 @@
</field>
<field>
<fielddescr>FailoverSettings</fielddescr>
- <fieldname>FailoverSettings</fieldname>
<type>listtopic</type>
<name>Failover Settings</name>
</field>
diff --git a/config/varnish3/varnish_settings.xml b/config/varnish3/varnish_settings.xml
index 38c68a03..bbb8d321 100644
--- a/config/varnish3/varnish_settings.xml
+++ b/config/varnish3/varnish_settings.xml
@@ -80,7 +80,6 @@
<fields>
<field>
<fielddescr>Listening</fielddescr>
- <fieldname>Listening</fieldname>
<type>listtopic</type>
<name>Daemon options</name>
</field>
@@ -112,7 +111,6 @@
</field>
<field>
<fielddescr>StorageTypeLT</fielddescr>
- <fieldname>StorageTypeLT</fieldname>
<type>listtopic</type>
<name>Storage type</name>
</field>
@@ -135,7 +133,6 @@
<field>
<fielddescr>WorkerThreadLT</fielddescr>
- <fieldname>WorkerThreadLT</fieldname>
<type>listtopic</type>
<name>Worker thread configuration</name>
</field>
@@ -159,7 +156,6 @@
</field>
<field>
<fielddescr>BasicVCLLT</fielddescr>
- <fieldname>BasicVCLLT</fieldname>
<type>listtopic</type>
<name>General VCL Settings</name>
</field>
@@ -245,7 +241,6 @@
</field>
<field>
<fielddescr>ErrorVCLLT</fielddescr>
- <fieldname>ErrorVCLLT</fieldname>
<type>listtopic</type>
<name>Error Settings</name>
</field>
diff --git a/config/varnish3/varnish_sync.xml b/config/varnish3/varnish_sync.xml
index fd387fdb..d81851b1 100644
--- a/config/varnish3/varnish_sync.xml
+++ b/config/varnish3/varnish_sync.xml
@@ -80,7 +80,6 @@
<fields>
<field>
<type>listtopic</type>
- <fieldname>temp</fieldname>
<name>Enable Varnish configuration sync</name>
</field>
<field>