<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
<channel>
<title>n42 Designs - Railo</title>
<link>http://www.n42designs.com/blog/index.cfm</link>
<description>n42 Designs Blog</description>
<language>en-us</language>
<pubDate>Sun, 05 Sep 2010 04:51:35 -0400</pubDate>
<lastBuildDate>Mon, 30 Nov 2009 13:01:00 -0400</lastBuildDate>
<generator>BlogCFC</generator>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<managingEditor>sean@n42designs.com</managingEditor>
<webMaster>sean@n42designs.com</webMaster>
<itunes:subtitle></itunes:subtitle>
<itunes:summary></itunes:summary>
<itunes:category text="Technology" />
<itunes:category text="Technology">
<itunes:category text="Podcasting" />
</itunes:category>
<itunes:category text="Technology">
<itunes:category text="Tech News" />
</itunes:category>
<itunes:keywords></itunes:keywords>
<itunes:author></itunes:author>
<itunes:owner>
<itunes:email>sean@n42designs.com</itunes:email>
<itunes:name></itunes:name>
</itunes:owner>
<itunes:image href="" />
<image>
<url></url>
<title>n42 Designs</title>
<link>http://www.n42designs.com/blog/index.cfm</link>
</image>
<itunes:explicit>no</itunes:explicit>
<item>
<title>SVN, Apache, and mod_caucho, oh my</title>
<link>http://www.n42designs.com/blog/index.cfm/2009/11/30/SVN-Apache-and-modcaucho-oh-my</link>
<description>
I recently set up a new &lt;a href=&quot;http://www.viviotech.net/?rid=n42designs&quot;&gt;Viviotech&lt;/a&gt; VPS and ran into an issue that was easy to fix once I realized what was happening, but difficult to debug.
I set up Railo running on the Resin server using Apache as a front end with mod_caucho.
In my httpd.conf file I had the following lines:
&lt;code&gt;
LoadModule caucho_module /usr/lib/httpd/modules/mod_caucho.so
ResinConfigServer localhost 6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes
&lt;/code&gt;
This causes Resin to handle all requests from apache. The resin configuration files tell resin which URLs to handle.
I also had an SVN server set up so I had a configuration file in /etc/httpd/conf.d/ to set up subversion.
All my SVN repositories are under the location /svn.
So reading SVN repositories worked fine, but I kept getting &quot;path not found&quot; errors when committing new files. After debugging this for quite a while using Fiddler, and other means, I finally realized that Resin was actually handling the PUT http request and, finding no file, returned a 404.
So to fix this, and simply have Apache handle any request to /svn/ I modifed my httpd.conf file as follows:
&lt;code&gt;
LoadModule caucho_module /usr/lib/httpd/modules/mod_caucho.so
&lt;LocationMatch ^((?!/svn/).)*$&gt;
ResinConfigServer localhost 6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes
&lt;/LocationMatch&gt;
&lt;/code&gt;
then restarted Apache.
Now apache handles any requests to /svn/* and Resin handles all other requests. Hopefully this helps future Googlers in need.
</description>
<category>Subversion</category>
<category>Apache</category>
<category>Railo</category>
<pubDate>Mon, 30 Nov 2009 13:01:00 -0400</pubDate>
<guid>http://www.n42designs.com/blog/index.cfm/2009/11/30/SVN-Apache-and-modcaucho-oh-my</guid>
</item>
</channel></rss>