Created
April 26, 2017 03:24
-
-
Save joliver/40291313605971545a0c1f6a3040d4c3 to your computer and use it in GitHub Desktop.
Multi-core HAProxy Sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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