diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2015-12-12 21:42:34 +0100 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2015-12-12 21:42:34 +0100 |
commit | 1980fb6674d51d73f5ed6aa6e48dc2133d373a36 (patch) | |
tree | 131385b855237777e9d403ad34686433bac9a371 /config/haproxy-devel/pkg/haproxy.inc | |
parent | dcc68137b44ee8f82f4e71f6650fc1cec5fd8c6b (diff) | |
download | pfsense-packages-1980fb6674d51d73f5ed6aa6e48dc2133d373a36.tar.gz pfsense-packages-1980fb6674d51d73f5ed6aa6e48dc2133d373a36.tar.bz2 pfsense-packages-1980fb6674d51d73f5ed6aa6e48dc2133d373a36.zip |
haproxy-devel, small fixes
Diffstat (limited to 'config/haproxy-devel/pkg/haproxy.inc')
-rw-r--r-- | config/haproxy-devel/pkg/haproxy.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/config/haproxy-devel/pkg/haproxy.inc b/config/haproxy-devel/pkg/haproxy.inc index 3d614fe0..8dce42ee 100644 --- a/config/haproxy-devel/pkg/haproxy.inc +++ b/config/haproxy-devel/pkg/haproxy.inc @@ -43,7 +43,10 @@ $a_frontendmode = array(); $a_frontendmode['http'] = array('name' => "http / https(offloading)", 'shortname' => "http/https"); $a_frontendmode['https'] = array('name' => "ssl / https(TCP mode)", 'shortname' => "ssl/https"); $a_frontendmode['tcp'] = array('name' => "tcp", 'shortname' => "tcp"); -$a_frontendmode['health'] = array('name' => "health", 'shortname' => "health"); +/* + if anyone actually used this what was it good for with recent package versions? +$a_frontendmode['health'] = array('name' => "health", 'shortname' => "health"); +*/ global $a_acltypes; $a_acltypes = array(); @@ -1738,8 +1741,8 @@ function haproxy_writeconf($configpath) { if ($bind['forwardfor']) { fwrite ($fd, "\toption\t\t\tforwardfor\n"); fwrite ($fd, "\tacl https ssl_fc\n"); - fwrite ($fd, "\treqadd X-Forwarded-Proto:\ http if !https\n"); - fwrite ($fd, "\treqadd X-Forwarded-Proto:\ https if https\n"); + fwrite ($fd, "\thttp-request set-header\t\tX-Forwarded-Proto http if !https\n"); + fwrite ($fd, "\thttp-request set-header\t\tX-Forwarded-Proto https if https\n"); } } |