tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <>
Subject Re: jk_mod and binding tomcat's root to an apache directory
Date Sun, 04 Nov 2007 14:04:11 GMT
OK, but that doesn't fit into your first mail.

So here is the proposed solution:

LoadModule rewrite_module modules/
RewriteEngine On
RewriteRule /tomcat/(.*) /$1

The RewriteRule line extends until "PT]"

This will activate JK forwarding via a worker called myworker (you can
replace it by the name of your worker) for everything that starts with
/tomcat/ and also changes the forwarding URL by stripping the leading

FOR Apache we use mod_rewrite for those tricks, because it is a modular
server and there exists many usefuk modules. For IIS this kind of
ability is already build into the JK isapi plugin.

Is that what you are looking for?

Note that now we don't replace /tomcat by /servlet-examples, so a
working request now would be /tomcat/servlet-example/something.



Shug Boabby schrieb:
> On 4 Nov 2007, at 13:48, Rainer Jung wrote:
>>> To reiterate what I would like to do... I want to be able to set up
>>> to point to and
>>> likewise for SSL. It surprises me that more people do not want a simple,
>>> hassle-free setup like this!
>> This requirement is not well defined.
>> What do you want to happen with a request like this:
> I would like that request to go to tomcat, where tomcat sees that it
> received the request "a/b/c.d" on the domain. The result
> would be the same as calling
> directly. And similarly for SSL. I'd like to use Apache to do the SSL
> layer (as it is more efficient and saves maintaining 2 sets of
> certificates), but I still want Tomcat to know if it is communicating
> over a CONFIDENTIAL channel or not.
> ---------------------------------------------------------------------
> To start a new topic, e-mail:
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message