cs122b-2018-winter-project5: 000-default.conf

File 000-default.conf, 2.1 KB (added by Avinash, 8 years ago)
Line 
1Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_ROUTE_CHANGED
2
3<Proxy "balancer://TomcatTest_balancer">
4 BalancerMember "http://172.2.2.2:8080/TomcatTest"
5 BalancerMember "http://172.3.3.3:8080/TomcatTest"
6</Proxy>
7
8<Proxy "balancer://Session_balancer">
9 BalancerMember "http://172.2.2.2:8080/Session" route=1
10 BalancerMember "http://172.3.3.3:8080/Session" route=2
11ProxySet stickysession=ROUTEID
12</Proxy>
13
14<VirtualHost *:80>
15 # The ServerName directive sets the request scheme, hostname and port that
16 # the server uses to identify itself. This is used when creating
17 # redirection URLs. In the context of virtual hosts, the ServerName
18 # specifies what hostname must appear in the request's Host: header to
19 # match this virtual host. For the default virtual host (this file) this
20 # value is not decisive as it is used as a last resort host regardless.
21 # However, you must set it for any further virtual host explicitly.
22 #ServerName www.example.com
23
24 ServerAdmin webmaster@localhost
25 DocumentRoot /var/www/html
26
27 # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
28 # error, crit, alert, emerg.
29 # It is also possible to configure the loglevel for particular
30 # modules, e.g.
31 #LogLevel info ssl:warn
32
33 ErrorLog ${APACHE_LOG_DIR}/error.log
34 CustomLog ${APACHE_LOG_DIR}/access.log combined
35
36 # For most configuration files from conf-available/, which are
37 # enabled or disabled at a global level, it is possible to
38 # include a line for only one particular virtual host. For example the
39 # following line enables the CGI configuration for this host only
40 # after it has been globally disabled with "a2disconf".
41 #Include conf-available/serve-cgi-bin.conf
42
43ProxyPass /TomcatTest balancer://TomcatTest_balancer
44ProxyPassReverse /TomcatTest balancer://TomcatTest_balancer
45
46ProxyPass /Session balancer://Session_balancer
47ProxyPassReverse /Session balancer://Session_balancer
48
49</VirtualHost>
50
51# vim: syntax=apache ts=4 sw=4 sts=4 sr noet