From f4bbff6e8a27f0ed1dbdb7678ca0329bd0513a38 Mon Sep 17 00:00:00 2001 From: kkolinko Date: Sat, 15 Jan 2011 17:26:58 +0000 Subject: [PATCH] Updated ReplicationValve examples in the docs with the new regexp syntax. Added *.jpeg pattern to the list, as inspired by the comment in BZ 31912 https://issues.apache.org/bugzilla/show_bug.cgi?id=31912#c2 git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1059375 13f79535-47bb-0310-9956-ffa450edef68 --- webapps/docs/cluster-howto.xml | 4 ++-- webapps/docs/config/cluster-valve.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webapps/docs/cluster-howto.xml b/webapps/docs/cluster-howto.xml index 3e8824c48..d123cb4ec 100644 --- a/webapps/docs/cluster-howto.xml +++ b/webapps/docs/cluster-howto.xml @@ -269,7 +269,7 @@ should be completed:

</Channel> <Valve className="org.apache.catalina.ha.tcp.ReplicationValve" - filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;"/> + filter=".*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt"/> <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer" tempDir="/tmp/war-temp/" @@ -393,7 +393,7 @@ should be completed:

<Valve className="org.apache.catalina.ha.tcp.ReplicationValve" - filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;"/> + filter=".*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt"/>

The cluster uses valves to track requests to web applications, we've mentioned the ReplicationValve and the JvmRouteBinderValve above. diff --git a/webapps/docs/config/cluster-valve.xml b/webapps/docs/config/cluster-valve.xml index 28174c1e2..b6883cb22 100644 --- a/webapps/docs/config/cluster-valve.xml +++ b/webapps/docs/config/cluster-valve.xml @@ -59,7 +59,7 @@ the cluster doesn't have to probe the session managers for changes. If the request matches this filter pattern, the cluster assumes there has been no session change. An example filter would look like - filter=".*\.gif|.*\.js|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt;" + filter=".*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt" . The filter is a regular expression using java.util.regex. -- 2.11.0