cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Liam Morley" <lmor...@WPI.EDU>
Subject Apache, Tomcat 4, Cocoon, mod_webapp, and mod_rewrite -- how to get it working?
Date Thu, 29 Nov 2001 09:14:39 GMT
I'm looking for somebody who is using the above pieces. Or really just
anybody who is using mod_rewrite. My mod_rewrite is set up as follows:

RewriteEngine On
RewriteLog "E:/apache/Apache/logs/rewrite.log"
RewriteLogLevel 3
RewriteRule ^/(.*) /cocoon/cms/$1 [PT]

These lines are directly after the AddModule section. I want my Cocoon
application to seem like it's at the root directory. I'm hoping that's
what's getting accomplished here.

I have mod_webapp set up as follows:

WebAppConnection conn warp
WebAppDeploy cocoon conn /cocoon

This is at the bottom of my httpd.conf file. I'm getting a 404 when I
try accessing the root directory. I checked my Apache error.log file and
saw the following:

[Thu Nov 29 03:55:21 2001] [error] [client] File does not
exist: e:/apache/apache/htdocs/cocoon/cms/

Why would it be looking in the htdocs folder?? Shouldn't it know from
webapp that anything in /cocoon is handled by tomcat?

I tried setting webapp to be deployed in the root directory, and changed
the rewrite rool from /cocoon/cms/$1 to /cms/$1. Upon loading the page,
the cocoon website came up; "/cocoon" instead of "/cocoon/cms".

This leads me to believe that webapp is getting processed before
rewrite. This is the opposite order in which I want them to be
processed. How do I make sure that rewrite is processed first?

A huge thank you to anybody who can help out.

Liam Morley

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message