Skip to content

Instantly share code, notes, and snippets.

@joliver
Created April 26, 2017 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joliver/40291313605971545a0c1f6a3040d4c3 to your computer and use it in GitHub Desktop.
Save joliver/40291313605971545a0c1f6a3040d4c3 to your computer and use it in GitHub Desktop.
Multi-core HAProxy Sample
listen frontend-secure
mode tcp
bind :443 tfo ssl crt /etc/ssl/private/
server forward-to-internal-via-pipe abns@haproxy-pipe send-proxy
bind-process 2-4
frontend frontend-aggregate
bind abns@haproxy-pipe accept-proxy
bind-process 1
option forwardfor
use_backend haproxy-stats if { ........... }
use_backend %[req.hdr(host),map_dom(/etc/haproxy/haproxy-map.txt)]
backend haproxy-stats
mode http
bind-process 1
stats enable
stats admin if TRUE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment