-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhttpd-load-balance
44 lines (28 loc) · 1.24 KB
/
httpd-load-balance
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
<VirtualHost *:443>
ServerName localhostorg.in:443
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLCipherSuite ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:HIGH:+AES256:+CAMELLIA:+SHA1:+3DES:!aNULL:!DSS:!DH:-AES+SSLv3
SSLHonorCipherOrder On
# SSLCertificateFile /etc/httpd/ssl/dmsirm_centralbank_org_in.crt
# SSLCertificateKeyFile /etc/httpd/ssl/dmsirmserver.key
# SSLCertificateChainFile /etc/httpd/ssl/GeoTrust_Intermediate_certificate.crt
# SSLCACertificateFile /etc/httpd/ssl/root_certificate.crt
SSLCertificateFile /etc/httpd/ssl/new_certificate/org.in.crt
SSLCertificateKeyFile /etc/httpd/ssl/new_certificate/server.key
SSLCertificateChainFile /etc/httpd/ssl/new_certificate/CA-bundle
ProxyRequests On
#ProxyPass / http://0.0.0.1:8080/
#ProxyPassReverse / http://0.0.0.1:8080/
ProxyPass / balancer://balservers/ stickysession=JSESSIONID nofailover=Off
ProxyPassReverse / balancer://balservers
ErrorLog logs/error.log
CustomLog logs/custom.log common
<Proxy balancer://balservers>
# Hot-Failover
BalancerMember ajp://0.0.0.1:8009 route=node1 ttl=1200 smax=5
# The below is the hot standby
BalancerMember ajp://0.0.0.2:8009 route=node2 ttl=1200 smax=5 status=+H
ProxySet lbmethod=byrequests
</Proxy>
</VirtualHost>