[opencms-dev] mod_rewrite and JK
Olli Aro
olli_aro at yahoo.co.uk
Thu Jan 22 17:09:01 CET 2004
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
---
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