GitBucket
Snippets
Sign in
leon
/
ssl-haproxy.md
Fork
0
Created at Tue Apr 28 23:43:53 WIB 2020
Download ZIP
HTTP
Embed
Embed this snippet in your website.
HTTP
Clone with Git using the repository's web address.
Code
Revision
Forks
Leonardus Kristaris Sastra
revised this
on 2 May 2020
b8ac78a
ssl-haproxy.md
``` frontend http bind *:80 bind *:443 ssl crt /etc/haproxy/cert.pem redirect scheme https code 301 if !{ ssl_fc } reqadd X-Forwarded-Proto:\ http reqadd X-Forwarded-Proto:\ https mode http errorfile 503 /etc/haproxy/50x.http default_backend web-backend backend web-backend balance roundrobin server web1 117.53.44.123:8080 check ```
``` frontend http bind *:80 bind *:443 ssl crt /etc/haproxy/cert.pem redirect scheme https code 301 if !{ ssl_fc } mode http errorfile 503 /etc/haproxy/50x.http default_backend web-backend backend web-backend balance roundrobin server web1 117.53.44.123:8080 check ```
Leonardus Kristaris Sastra
revised this
on 28 Apr 2020
aa120fa
ssl-haproxy.md
``` frontend http bind *:80 bind *:443 ssl crt /etc/haproxy/cert.pem redirect scheme https code 301 if !{ ssl_fc } mode http errorfile 503 /etc/haproxy/50x.http default_backend web-backend backend web-backend balance roundrobin server web1 117.53.44.123:8080 check ```
frontend http bind *:80 bind *:443 ssl crt /etc/haproxy/cert.pem redirect scheme https code 301 if !{ ssl_fc } mode http errorfile 503 /etc/haproxy/50x.http default_backend web-backend backend web-backend balance roundrobin server web1 117.53.44.123:8080 check
Leonardus Kristaris Sastra
revised this
on 28 Apr 2020
2b20371
ssl-haproxy.md
frontend http bind *:80 bind *:443 ssl crt /etc/haproxy/cert.pem redirect scheme https code 301 if !{ ssl_fc } mode http errorfile 503 /etc/haproxy/50x.http default_backend web-backend backend web-backend balance roundrobin server web1 117.53.44.123:8080 check