Created
December 18, 2015 20:10
-
-
Save PiBa-NL/8e88a0119d172fbef144 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
# HAProxy config below allows my browser to access: http://192.168.0.120/#q=test | |
# note that im using the tld 'nl' for the host header which is what google alway defaults to for me anyway.. | |
global | |
maxconn 1000 | |
stats socket /tmp/haproxy.socket level admin | |
daemon | |
listen HAProxyLocalStats | |
bind 127.0.0.1:2200 name localstats | |
mode http | |
stats enable | |
stats refresh 5 | |
stats admin if TRUE | |
stats uri / | |
frontend goog | |
bind 192.168.0.120:80 name 192.168.0.120:80 | |
mode http | |
log global | |
option http-keep-alive | |
timeout client 30000 | |
default_backend google_http_ipvANY | |
backend google_http_ipvANY | |
mode http | |
log global | |
timeout connect 30000 | |
timeout server 30000 | |
retries 3 | |
option httpchk GET / | |
http-request set-header Host www.google.nl | |
server google-srv google.com:443 ssl check inter 10000 verify none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment