Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@haproxynlb ~]# cat /etc/haproxy/haproxy.cfg
- global
- log /dev/log local0
- log 127.0.0.1 local2
- log /dev/log local1 notice
- chroot /var/lib/haproxy
- stats timeout 30s
- user haproxy
- group haproxy
- daemon
- defaults
- log global
- mode http
- option httplog
- option dontlognull
- timeout connect 5000
- timeout client 50000
- timeout server 50000
- frontend http_front
- bind *:80
- stats uri /haproxy?stats
- #specify port and certs
- bind *:443 ssl crt /etc/pki/tls/certs/haproxy.pem
- backend http_back
- balance roundrobin
- server es2.uipathindia.in 192.168.3.16:443 check ssl verify none
- server es1.uipathindia.in 192.168.3.15:443 check ssl verify none
- listen elasticsearch-TCP-9200
- bind *:9200
- mode tcp
- option tcpka
- option tcplog
- option redispatch
- option httpchk GET /
- timeout server 15m
- balance roundrobin
- server elasticsearch-1 192.168.3.15:9200 check
- server elasticsearch-2 192.168.3.16:9200 check
- server elasticsearch-3 192.168.3.17:9200 check
- #backend http_back
- # balance roundrobin
- # server IIS16 192.168.3.16:443 check ssl verify none
- # server IIS15 192.168.3.15:443 check ssl verify none
- #server IIS77 ser-blr-elastes.uipathindia.in:443 check ssl verify none
- #server IIS78 SER-B-INFRAORCH.uipathindia.in:443 check ssl verify none
- #server IIS77 192.168.2.77:443 check ssl verify none
- #server IIS78 192.168.2.78:443 check ssl verify none
- listen stats
- bind *:8181
- stats enable
- stats uri /
- stats realm Haproxy\ Statistics
- stats auth username:passwordlisten stats
- bind *:8181
- stats enable
- stats uri /
- stats realm Haproxy\ Statistics
- stats auth haproxy:UIpath@123
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement