Ubuntu Pastebin

Paste from vhost at Wed, 27 Jul 2016 16:51:20 +0000

Download as text
 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
Listen 8080
<VirtualHost *:8080>
ProxyRequests off
Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_ROUTE_CHANGED
    <Proxy balancer://mycluster>
    # Define back-end servers:

    Order Allow,Deny
    Deny from none
    Allow from all
    
    ProxySet lbmethod=byrequests
    ProxySet stickysession=ROUTEID
</Proxy>

# balancer-manager
# This tool is built into the mod_proxy_balancer
# module and will allow you to do some simple
# modifications to the balanced group via a gui
# web interface.
<Location /balancer-manager>
        SetHandler balancer-manager

        # I recommend locking this one down to your
        # administering location
        Order deny,allow
        Allow from all
</Location>

        ProxyPreserveHost On
	# It is also possible to configure the loglevel for particular
	# modules, e.g.
	#LogLevel info ssl:warn

	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined

	# For most configuration files from conf-available/, which are
	# enabled or disabled at a global level, it is possible to
	# include a line for only one particular virtual host. For example the
	# following line enables the CGI configuration for this host only
	# after it has been globally disabled with "a2disconf".
	#Include conf-available/serve-cgi-bin.conf
        ProxyPass /balancer-manager !
        ProxyPass /platform balancer://mycluster/platform 

</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Download as text