Skip to content

Instantly share code, notes, and snippets.

@PiBa-NL
Created December 18, 2015 20:10
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 PiBa-NL/8e88a0119d172fbef144 to your computer and use it in GitHub Desktop.
Save PiBa-NL/8e88a0119d172fbef144 to your computer and use it in GitHub Desktop.
# 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