Last active
April 18, 2018 18:51
-
-
Save davidmlentz/843962f1ccf7850baf91a4f8f6a32542 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 /dev/log local0 | |
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 | |
log global | |
backend servers | |
balance roundrobin | |
server wp1 167.99.165.140:80 check | |
log global | |
mode http | |
listen stats # Define a listen section called "stats" | |
bind :9000 # Listen on localhost:9000 | |
mode http | |
stats refresh 45s | |
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