aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-dev/haproxy.inc
diff options
context:
space:
mode:
authorthompsa <andy@fud.org.nz>2010-02-08 12:23:06 +1300
committerthompsa <andy@fud.org.nz>2010-02-08 12:23:06 +1300
commit06ea9faba91fe5684e14bea9f8591f88b4a7339d (patch)
tree6debb4d142237a0d2829660f970d7862285dec4c /config/haproxy-dev/haproxy.inc
parent19cd232b7740f23da662c687d306efecc7df5e6c (diff)
downloadpfsense-packages-06ea9faba91fe5684e14bea9f8591f88b4a7339d.tar.gz
pfsense-packages-06ea9faba91fe5684e14bea9f8591f88b4a7339d.tar.bz2
pfsense-packages-06ea9faba91fe5684e14bea9f8591f88b4a7339d.zip
Provide default for monitor_uri
Diffstat (limited to 'config/haproxy-dev/haproxy.inc')
-rw-r--r--config/haproxy-dev/haproxy.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/haproxy-dev/haproxy.inc b/config/haproxy-dev/haproxy.inc
index 0a8f60fc..e60823b3 100644
--- a/config/haproxy-dev/haproxy.inc
+++ b/config/haproxy-dev/haproxy.inc
@@ -246,7 +246,12 @@ function haproxy_configure() {
if($pool['cookie_name'])
fwrite ($fd, "\tcookie\t\t\t" . $pool['cookie_name'] . " insert indirect\n");
- fwrite ($fd, "\toption\t\t\t{$httpchk} HEAD " . $pool['monitor_uri'] . " HTTP/1.0\n");
+ $uri = $pool['monitor_uri'];
+ if ($pool['monitor_uri'])
+ $uri = $pool['monitor_uri'];
+ else
+ $uri = "/";
+ fwrite ($fd, "\toption\t\t\t{$httpchk} HEAD " . $uri . " HTTP/1.0\n");
if($pool['cookie'])
$cookie = " cookie {$pool['cookie']} ";