Home Contact Us

n42 Designs

ColdFusion and Flex Web Development

n42 Designs

n42 Designs specializes in custom web development using the Adobe web development platform, ColdFusion and Flex. For web sites, web applications, large and small, let us know how we can help your business succeed!

Search

n42 Designs

Recent Comments

Subscribe

RSS

 

SVN, Apache, and mod_caucho, oh my

I recently set up a new Viviotech 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:

LoadModule caucho_module /usr/lib/httpd/modules/mod_caucho.so
ResinConfigServer localhost 6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes
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 "path not found" 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:
LoadModule caucho_module /usr/lib/httpd/modules/mod_caucho.so
<LocationMatch ^((?!/svn/).)*$>
ResinConfigServer localhost 6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes
</LocationMatch>
then restarted Apache. Now apache handles any requests to /svn/* and Resin handles all other requests. Hopefully this helps future Googlers in need.

Comments
Rockwell's Gravatar I saw on Twitter that you were having trouble installing Railo on CentOS, with the error that "modules/c/src/resin/Makefile.in" was not found. I'm trying to do the same exact thing, and with similar luck. In fact, I'm also missing "modules/c/src/resinssl/Makefile.in".

I'm stumped; I'd love to know how you fixed this problem. Thanks.
# Posted By Rockwell | 12/1/09 12:48 AM
Rockwell's Gravatar I'm back already. I tracked down your post on the Railo mailing list and saw that you had merely reverted an older version of Railo, 3.1.1.000 to be precise. I did the same and everything came out just peachy. Thanks for your help.

Here's the download URL for any Googlers out there: http://www.getrailo.org/down.cfm?item=/railo/remot...
# Posted By Rockwell | 12/1/09 2:10 AM
Sean Coyne's Gravatar Yeah it seems like there is an issue with the version of Resin bundled with the newest Railo release. The great thing about Railo though is that you can install the older version and then Railo can just update itself to the newest version.
# Posted By Sean Coyne | 12/1/09 8:28 AM