Could I do the following:

[uri:myDir/Servlet/*]
context=myDir

<Context path="/myDir" docRoot ="......" />

Is that the proper use of the URI directive?

_____________________________________
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-----Original Message-----
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: July 2, 2003 12:53 PM
To: Tomcat Users List
Subject: Re: Apache-Tomcat configuration question


Most people don't mix servlets and JSP, in which case you would use 
something like

[uri:/myDir/servlet/*]
worker=ajp13:localhost:8009
 In the case of something like Struts, servlets are mapped to URLs
ending 
in *.do, so you would do the same as with JSP:

[uri:/myDir/*.do]
worker=ajp13:localhost:8009

John

On Wed, 02 Jul 2003 12:46:04 -0300, Atreya Basu 
<[EMAIL PROTECTED]> wrote:

> Could I ask you to elaborate a bit more?
>
> Say I have the following, would it be correct?
>
> [httpd.conf]
> Alias /myDir /var/web/someDir
>
> [server.xml]
> <context path="/myDir" docBase="/var/web/someDir" />
>
> [workers2.proeprties]
> [uri:/myDir/*.jsp]
> worker=ajp13:localhost:8009
> context=myDir
>
> In that case what about the Servlet mapping?
>
>
> _____________________________________
> Atreya Basu
> Developer,
> Greenfield Research Inc.
> e-mail: atreya (at) greenfieldresearch (dot) ca
>
> -----Original Message-----
> From: John Turner [mailto:[EMAIL PROTECTED] Sent: July 2,
2003 
> 12:34 PM
> To: Tomcat Users List
> Subject: Re: Apache-Tomcat configuration question
>
>
> Use a map.
>
> JK example:
>
> JkMount /*.jsp ajp13
>
> JK2 example
>
> [uri:/examples/*.jsp]
> worker=ajp13:localhost:8009
>
> John
>
> On Wed, 02 Jul 2003 12:28:18 -0300, Atreya Basu 
> <[EMAIL PROTECTED]> wrote:
>
>> Hello,
>>
>> Is it possible to have a directory where all the HTML files and file
>> permissions etc. are handled by Apache and all the JSPs and servlets
>> handled by Tomcat?
>>
>> I have Tomcat and Apache working successfully using JK2.  What I want
> to
>> do is the following:
>>
>> Say I have a directory: /mydirectory
>>
>> And I want to access HTML pages (handled by Apache) via:
>> http://myhost/mydirectory/
>> But I want to access servlets and JSPs also (handled by Tomcat) via:
>> http://myhost/mydirectory/
>>
>> Is there any way to do this without having to create a separate
>> directory for the JSPs and servlets?
>> _____________________________________
>> Atreya Basu
>> Developer,
>> Greenfield Research Inc.
>> e-mail: atreya (at) greenfieldresearch (dot) ca
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to