Re: Apache Rewrite and JkMount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Philip Hunt (Straker Software) wrote:
Hi,


Hello,

I have the following Rewrite config, to pass requests through Apache to Tomcat using AJP:

RewriteEngine on
RewriteRule ^/abc - [L,PT]
RewriteRule (.*) /abc$1 [L,PT]

JkMount /abc/* node1

just curious, why not using mod_proxy_ajp ?


This works, to the point that requests to http://sitename/ are rewritten to http://sitename/abc ... and the JkMount directive finds a match, and passes the request off to a worker.

However, I need JkMount to preserve the rewritten URI and it doesn't appear to be doing that.

A request to http://sitename/ gets rewritten to http://sitename/abc ... but, goes to the worker as http://sitename/

Does anyone know how I can preserve the rewritten URI when passing to the worker?


Thanks,
Phil

--
Philip Hunt
System Administrator
Straker Software
phone: +64 28 899 4802
email: philip.hunt@xxxxxxxxxxxxxxxxxxx <mailto:philip.hunt@xxxxxxxxxxxxxxxxxxx>
web: http://www.shadocms.com


--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.
begin:vcard
fn:Julien Cigar
n:Cigar;Julien
org;quoted-printable:Belgian Biodiversity Platform;ULB (Universit=C3=A9 Libre de Bruxelles)
adr:;;;Brussels;;;Belgium
email;internet:jcigar@xxxxxxxxx
tel;work:+32(0)26505752
x-mozilla-html:FALSE
url:http://www.biodiversity.be
version:2.1
end:vcard


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux