Liam Morley wrote:
> 
> Can anybody who has successfully used mod_rewrite for Cocoon2 please
> contact me, or send me your full configuration (apache, tomcat if used,
> cocoon)? if you're using mod_jk, that'd be yet another plus. Or if not
> full configuration, as much as you can spare...
> 
> Here's what's happening to me: I'm checking the rewrite log, and it seems
> to be working correctly- it will say that the user is being redirected to
> the proper page. However, this never happens when I'm actually using the
> browser, though. Let's say "/" is redirecting to "/cocoon/my_proj/" (I'll
> leave the actual regexp stuff out for purposes of brevity). If I type in
> "http://localhost/";, I get a 404 (yet the rewrite.log says that I've been
> redirected to /cocoon/myproj). if I type out
> "http://localhost/cocoon/myproj/";, then I actually see what I want to see
> - however, rewrite.log says I'm being redirected to
> http://localhost/cocoon/myproj/cocoon/myproj, so I'm not sure what's going
> on.
> 
> Any assistance would be greatly appreciated.

Hi Liam,

this is what I have in my httpd.conf. I have an application called
Biocomputing so that a request like localhost/Biocomputing/something is
redirected to localhost /cocoon/Biocomputing/something. Especially the
line "JkMount /cocoon/* ajp12" appears to be crucial. Without it,
nothing is working, although the rewrite rule itself was properly
executed (according to the log file).

    include /usr/local/jakarta-tomcat/conf/mod_jk.conf-auto
 
    JkMount /*.jsp ajp12
    JkMount /*.xml ajp12
 
    JkMount /cocoon/* ajp12    

    RewriteEngine On
    RewriteLog "/var/log/rewrite.log"
    RewriteLogLevel 3
    RewriteRule ^/Biocomputing(.*) /cocoon/Biocomputing$1 [R]

I hope this will help you,

Andre.

> 
> -------
> Liam Morley
> 
> "light the deep, and bring silence to the world.
> light the world, and bring depth to the silence."
> 
> ---------------------------------------------------------------------
> 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]>

-- 
Andre H. Juffer              | Phone: +358-8-553 1683
The Biocenter and            | Fax: +358-8-553-1141
    the Dep. of Biochemistry | Email: [EMAIL PROTECTED]
University of Oulu, Finland  | WWW:
http://www.biochem.oulu.fi/research.html

---------------------------------------------------------------------
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]>

Reply via email to