[opencms-dev] mod_rewrite and JK

Olli Aro olli_aro at yahoo.co.uk
Fri Jan 23 11:38:02 CET 2004


Thanks for everyone for their tips! The code below does the trick in the
end;D

RewriteCond %{REQUEST_URI} !^/opencms/resources/*
RewriteRule   !^/opencms/opencms/?(.*)$ /opencms/opencms%2%{REQUEST_URI}
[PT]
JkMount /* worker1

Regards,

Olli

> -----Original Message-----
> From: opencms-dev-admin at opencms.org
> [mailto:opencms-dev-admin at opencms.org]On Behalf Of Andras Balogh
> Sent: 23 January 2004 09:16
> To: opencms-dev at opencms.org
> Subject: Re: [opencms-dev] mod_rewrite and JK
>
>
>     Hello Olli,
>
>     I don't know why you are trying to hide the /opencms/opencms/ path.
> You  can change it to whatever you like ex. /olli/cms/.
>     Anyway i think you have to specify   [PT] (pass through) also in the
> RewriteRul this will allow
> the mod_jk module to get in action. Also maybe the order of loading the
> apache modules
> (i.e. mod_jk and mod_rewrite) is also metters i think first mod_jk
> should be loaded then mod_rewrite.
>
> Best wishes,
> Andras.
>
> Olli Aro wrote:
>
> >Hi all,
> >
> >I know this is not a mod_rewrite list (so hopefully you don't mind be
> >posting this here), but thought maybe someone would be able to help me
> >anyway.
> >
> >I am trying to hide /opencms/opencms/. I know people have done
> this before
> >by editing the webapp configs, but I would like to do this with the
> >mod_rewrite instead. So I have added to my Apache config as below: -
> >
> >JkMount /opencms/* worker1
> >RewriteEngine on
> >RewriteLog "logs/rewrite.log"
> >RewriteLogLevel 3
> >RewriteRule   !^/opencms/opencms/?(.*)$
> /opencms/opencms%2%{REQUEST_URI} [L]
> >
> >If I run this with R flag the redirection works fine, but when I
> try to use
> >L option to hide the redirect url, the server ignores the
> JkMount and tries
> >to fetch the document from the Apache root htdocs/opencms/opencms/... Any
> >ideas why it ignores my JkMount?
> >
> >Thanks,
> >
> >Olli
> >---
> >
> >
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.561 / Virus Database: 353 - Release Date: 13/01/2004
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.561 / Virus Database: 353 - Release Date: 13/01/2004





More information about the opencms-dev mailing list