<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>devjason &#187; Tomcat</title>
	<atom:link href="http://www.devjason.com/tag/tomcat/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devjason.com</link>
	<description>Code, Statistics, Maps</description>
	<lastBuildDate>Tue, 22 Sep 2009 17:04:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Apache Trailing Slash Problem</title>
		<link>http://www.devjason.com/2009/06/10/apache-trailing-slash-problem/</link>
		<comments>http://www.devjason.com/2009/06/10/apache-trailing-slash-problem/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 18:36:21 +0000</pubDate>
		<dc:creator>jsmith</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://www.devjason.com/?p=123</guid>
		<description><![CDATA[I was helping our IT guys out this past weekend configuring a reverse proxy load balancing environment for JBoss/Tomcat behind Apache.  I kept running into problems where requests coming from Apache looked like:
GET /foo//bar instead of GET /foo/bar

Unfortunately this was causing NPEs and resource not found errors in a third party servlet filter we [...]]]></description>
			<content:encoded><![CDATA[<p>I was helping our IT guys out this past weekend configuring a reverse proxy load balancing environment for JBoss/Tomcat behind Apache.  I kept running into problems where requests coming from Apache looked like:<br />
<code>GET /foo//bar</code> instead of <code>GET /foo/bar</code><br />
<span id="more-123"></span><br />
Unfortunately this was causing NPEs and resource not found errors in a third party servlet filter we are using to combine some our static resources.  This is the Apache configuration that seems to have resolved the problem, I just wanted to post it here in case I ran up against it again.</p>
<pre class="brush: plain;">
# Placed in Apache conf for the site
&lt;Proxy balancer://app_cluster &gt;
BalancerMember http://app1/foo
BalancerMember http://app2/foo
BalancerMember http://app3/foo
&lt;/Proxy&gt;
ProxyPass /foo/ balancer://app_cluster/ stickysession=JSESSIONID
ProxyPassReverse /foo/ http://app1/foo/
ProxyPassReverse /foo/ http://app2/foo/
ProxyPassReverse /foo/ http://app3/foo/
</pre>
<p>The lesson here is attention to detail, especially your final slashes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devjason.com/2009/06/10/apache-trailing-slash-problem/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
