1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<VirtualHost *:80>
ServerName 192.168.18.113
ProxyPass
/images
!
ProxyPass
/css
!
ProxyPass
/js
!
ProxyPass / balancer:
//cluster/
stickysession=JSESSIONID nofailover=Off
ProxyPassReverse / balancer:
//cluster/
ErrorLog
"/var/log/apache2/cluster-error.log"
CustomLog
"/var/log/apache2/cluster-access.log"
common
<proxy balancer:
//cluster
>
BalancerMember http:
//192
.168.18.109:8084 loadfactor=1 route=node1
BalancerMember http:
//192
.168.18.109:80 loadfactor=1 route=node2
<
/proxy
>
<
/VirtualHost
>
|
1
2
3
4
5
6
7
8
|
<%@page contentType=
"text/html;charset=GB2312"
%>
<html>
<
head
> <
/head
>
<body>
<%String s = session.getId();%>
<p>SessionID: <%=s %><
/p
>
<
/body
>
<
/html
>
|
1
2
3
4
5
|
<description>
Welcome to Tomcat
<
/description
>
<distributable/>
<
/web-app
>
|