Last active
April 6, 2018 16:02
-
-
Save davidmlentz/c40f57ab38b9da8e55564908d4cb2c36 to your computer and use it in GitHub Desktop.
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
global | |
log 127.0.0.1:1514 local0 | |
log 127.0.0.1 local1 notice | |
user haproxy | |
group haproxy | |
defaults | |
mode http | |
log global | |
option httplog | |
option dontlognull | |
option redispatch | |
retries 3 | |
timeout connect 10s | |
timeout client 300s | |
timeout server 300s | |
frontend my-frontend | |
bind *:80 | |
default_backend servers | |
backend servers | |
balance roundrobin | |
server wp1 <my IP>:80 check | |
listen stats # Define a listen section called "stats" | |
bind :9000 # Listen on localhost:9000 | |
mode http | |
stats enable # Enable stats page | |
stats hide-version # Hide HAProxy version | |
stats realm Haproxy\ Statistics # Title text for popup window | |
stats uri /haproxy_stats # Stats URI | |
stats auth Username:Password # Authentication credentials |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment