Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global
- log 127.0.0.1 local0
- log 127.0.0.1 local1 notice
- uid 0
- gid 0
- # daemon
- defaults
- log global
- mode http
- option httplog
- option dontlognull
- option forwardfor
- option http-server-close
- contimeout 5000
- clitimeout 50000
- srvtimeout 50000
- errorfile 400 /usr/local/etc/haproxy/errors/400.http
- errorfile 403 /usr/local/etc/haproxy/errors/403.http
- errorfile 408 /usr/local/etc/haproxy/errors/408.http
- errorfile 500 /usr/local/etc/haproxy/errors/500.http
- errorfile 502 /usr/local/etc/haproxy/errors/502.http
- errorfile 503 /usr/local/etc/haproxy/errors/503.http
- errorfile 504 /usr/local/etc/haproxy/errors/504.http
- stats enable
- stats auth username:password
- stats uri /haproxyStats
- frontend http-in
- bind *:80
- # Define hosts based on domain names
- acl host_test1 hdr(host) -i pelican.home.lan
- ## figure out backend to use based on domainname
- use_backend pelican if host_test1
- backend pelican # pelican.home.lan container
- balance roundrobin
- option httpclose
- option forwardfor
- server s2 172.18.0.4:80 # This ip should be the ip of the pelican container
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement