On 25/06/2010 12:27, abhishek jain wrote:
> On Fri, Jun 25, 2010 at 4:51 PM, Mark Thomas <ma...@apache.org> wrote:
> 
>> On 25/06/2010 12:19, Pid wrote:
>>> On 25/06/2010 12:02, abhishek jain wrote:
>>>> On Fri, Jun 25, 2010 at 4:26 PM, Mark Thomas <ma...@apache.org> wrote:
>>>>
>>>>> On 25/06/2010 11:50, Pid wrote:
>>>>>> On 25/06/2010 11:46, abhishek jain wrote:
>>>>>>> hi
>>>>>>> thanks for the email,
>>>>>>> but the path is like
>>>>>>>   /usr/local/share/apps
>>>>>>>
>>>>>>> and for the second application:
>>>>>>>
>>>>>>>   /usr/local/share/apps/app2
>>>>>>>
>>>>>>> i mean it is a subfolder.
>>>>>>>
>>>>>>> will this still work?
>>>>>>
>>>>>> Depends which Tomcat version you actually have.  I don't think
>>>>>> multilevel paths are supported in 5.0.n, (but I might be wrong).
>>>>>
>>>>> It isn't (but that doesn't matter). Overlapping values for docBase are
>>>>> never valid. This configuration cannot work.
>>>>>
>>>>>
>>>> but are the overlapping values of context path valid, ?
>>>
>>> Depends on which version of Tomcat you have.
>>
>> Actually, overlapping context paths are always valid. Consider:
>> /
>> and
>> /docs
>>
>>> And whether you've configured it correctly.
>>
>> +1. Especially if you want /my/context/path
>>
>> Correct varies by version.
>>
>>
> 
> 
> 
> I am using tomcat 5.5 and cpanel is configuring it,
> but i think for this configuration i will have to go to file server.xml and
> add the additional  context path row in the xml , something like:
> 
> <Host name="xxxxxxxxxxx" appBase="/home/xxxxxxxxxxx/public_html">

appBase should not equal docBase.

>           <Alias>xxxxxxx</Alias>
> *          <Context path="" reloadable="true" docBase="/xxxxx/public_html"
> debug="1"/>

see above.

>           <Context path="/subfolder" reloadable="true"
> docBase="/yyyyyyyy/public_html" debug="1"/>

That's just the same docBase again.

> *          <Context path="/manager" debug="0" privileged="true"
>               docBase="/usr/local/jakarta/tomcat/server/webapps/manager">
>           </Context>
>        </Host>
> 
> is this the right way?


Let's start over.

Exactly which version: 5.5.what?

... and which JVM version; also are you using HTTPD & mod_jk in front of
Tomcat - if so, what versions are they?


p




Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to