diff options
author | Renato Botelho <renato@netgate.com> | 2015-12-14 09:54:15 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-12-14 09:54:15 -0200 |
commit | c2af83de50861c06434b569a95b75af8da1b21df (patch) | |
tree | 02c92a8a8ea838e4cc87c3359da54d4ba3eb7bed /config/haproxy-devel/pkg/haproxy.inc | |
parent | 4f0db58132b8aeeb483b31b3f35b7fae98b63316 (diff) | |
parent | eeb48a38bb2600a1ab8f37158ebee72a5a737944 (diff) | |
download | pfsense-packages-c2af83de50861c06434b569a95b75af8da1b21df.tar.gz pfsense-packages-c2af83de50861c06434b569a95b75af8da1b21df.tar.bz2 pfsense-packages-c2af83de50861c06434b569a95b75af8da1b21df.zip |
Merge pull request #1215 from PiBa-NL/haproxy_pkg0.32
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"); } } |