OK, but that doesn't fit into your first mail.

So here is the proposed solution:

LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine On
RewriteRule /tomcat/(.*) /$1
[E=JK_WORKER_NAME:myworker,H=jakarta-servlet,PT]

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
"/tomcat".

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.

Regards,

Rainer

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
>>> http://myserver.com/tomcat to point to http://myserver.com:8180 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:
>>
>> http://myserver.com/tomcat/a/b/c.d
> 
> I would like that request to go to tomcat, where tomcat sees that it
> received the request "a/b/c.d" on the myserver.com domain. The result
> would be the same as calling
> 
>   http://myserver.com:8180/a/b/c.d
> 
> 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: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to