Dear Liam, I am one of the long-time lurkers around; finally I found a subject with which I could hopefully be of some assistance. Please see my comments below.
On Thu, 29 Nov 2001, Liam Morley wrote: > 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. If you don't have any other rewrites, you could do it in a simpler way: ProxyPass / http://[yourhost]/cocoon/cms/ ProxyPassReverse / http://[yourhost]/cocoon/cms/ If that doesn't fit your requirements, then could it be that the flag for the RewriteRule should be [P] and perhaps even [P,L], in order to skip any following rewriting? As I understand it, [PT] lets other handlers have a go at the request, which you might don't want in this case, since you're proxying the request through to the Cocoon backend... I hope I was even close to a solution here; I use rewriting and proxying extensively on my sites, but I didn't have the chance to test these particular suggestions. > I have mod_webapp set up as follows: > > WebAppConnection conn warp imotic.res.wpi.net:8008 > 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 130.215.226.58] 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 Sincerely, Jan -- Mr. Jan-Aage Bruvoll IT Project Manager 20 Min Holding, Thurgauerstrasse 40, CH-8050 Zurich Zurich office: +41 1 307 4293, fax: +41 1 307 4281 Office/fax: +44 2072408283 Mobile: +44 7740291600 --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>