forked from akshaymathur90/experts_cmpe273_picloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.cfg
51 lines (37 loc) · 981 Bytes
/
config.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
global
log 127.0.0.1 local0 notice
maxconn 50
daemon
pidfile /var/run/haproxy.pid
defaults
log global
mode http
timeout connect 5000
timeout client 10000
timeout server 10000
option httplog
option dontlognull
option forwardfor
option http-server-close
frontend http-in
bind 127.0.0.1:8090
acl is_blog url_beg /blog
acl is_temp url_beg /temp
acl is_app1 url_beg /app1
acl is_app1 url_beg /app1
use_backend tecadmin_blog if is_blog
use_backend tecadmin_temp if is_temp
use_backend backend_app1 if is_app1
use_backend backend_app1 if is_app1
backend tecadmin_blog
balance roundrobin
server WEB1 127.0.0.1:5000
backend tecadmin_temp
balance roundrobin
server WEB2 127.0.0.1:5001
backend backend_app1
balance roundrobin
server serv_app1 54.215.224.150:8777
backend backend_app1
balance roundrobin
server serv_app1 54.215.224.150:8777