aboutsummaryrefslogtreecommitdiffstats
path: root/config/varnish3/varnish_view_config.php
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2014-12-01 00:27:45 -0200
committermarcelloc <marcellocoutinho@gmail.com>2014-12-01 00:27:45 -0200
commit013b19b7ab96847cffc6fdb9c6adb29f4da47323 (patch)
treef7024e1032fb25bb9f68bd1eb16e8467caf3a867 /config/varnish3/varnish_view_config.php
parentbc7e20f0fac8c79d7c7e20371006c12944748b8d (diff)
downloadpfsense-packages-013b19b7ab96847cffc6fdb9c6adb29f4da47323.tar.gz
pfsense-packages-013b19b7ab96847cffc6fdb9c6adb29f4da47323.tar.bz2
pfsense-packages-013b19b7ab96847cffc6fdb9c6adb29f4da47323.zip
varnish3 - Add force ssl option to LB Directors, config check before reload and improve stats gui
Diffstat (limited to 'config/varnish3/varnish_view_config.php')
-rw-r--r--config/varnish3/varnish_view_config.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/config/varnish3/varnish_view_config.php b/config/varnish3/varnish_view_config.php
index b02e5c88..30765756 100644
--- a/config/varnish3/varnish_view_config.php
+++ b/config/varnish3/varnish_view_config.php
@@ -28,7 +28,7 @@
*/
require("guiconfig.inc");
-
+require("varnish.inc");
$pf_version=substr(trim(file_get_contents("/etc/version")),0,3);
if ($pf_version < 2.0)
$one_two = true;
@@ -44,7 +44,7 @@ include("head.inc");
<p class="pgtitle"><?=$pgtitle?></font></p>
<?php endif; ?>
-<?php if ($savemsg) print_info_box($savemsg); ?>
+<?php varnish_check_config();if ($savemsg) print_info_box($savemsg); ?>
<form action="varnishstat_view_config.php" method="post">
@@ -71,8 +71,9 @@ include("head.inc");
<td class="tabcont" >
<textarea id="varnishlogs" rows="50" cols="100%">
<?php
- $config_file = file_get_contents("/var/etc/default.vcl");
- echo $config_file;
+ $config_file = file("/var/etc/default.vcl");
+ foreach ($config_file as $l => $v)
+ echo ($l+1)." - {$v}";
?>
</textarea>
</td>