You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rusty Wright <ru...@gmail.com> on 2008/10/07 23:31:34 UTC

Re: tomcat ROOT

Hi Markus, did you ever figure this out?  I was looking in the archives of the tomcat mailing list and saw your query but it didn't seem to me that anyone answered it fully, at least not for me.

I figured out that I could remove/rename the webapps/ROOT directory and deploy my war file as ROOT.war and then it would replace tomcat's web page at http://www.myhost.edu/ but I also have apache in front of tomcat and I don't understand how to set up the jkmount in my httpd.conf file to map apache's root to tomcat's root.


Markus Lord wrote:
> I have apache acting as a proxy for my tomcat and I'm wondering how I can get this one application 'myapp' to show up without having the directory name in the url.
> So what I'm looking to do is have it as www.mysite.com instead of www.mysite.com/myapp.
>  
> Thanks in advance.
>  
>  
>  
> Markus
> 

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


Re: tomcat ROOT

Posted by Rusty Wright <ru...@gmail.com>.
Excellent; thanks!


Johnny Kewl wrote:
>
> ----- Original Message ----- From: "Rusty Wright" 
> <ru...@gmail.com>
> To: "Markus Lord" <ma...@edu.sait.ca>; "Tomcat Users List" 
> <us...@tomcat.apache.org>
> Sent: Tuesday, October 07, 2008 11:31 PM
> Subject: Re: tomcat ROOT
>
>
>> Hi Markus, did you ever figure this out?  I was looking in the 
>> archives of the tomcat mailing list and saw your query but it didn't 
>> seem to me that anyone answered it fully, at least not for me.
>>
>> I figured out that I could remove/rename the webapps/ROOT directory 
>> and deploy my war file as ROOT.war and then it would replace tomcat's 
>> web page at http://www.myhost.edu/ but I also have apache in front of 
>> tomcat and I don't understand how to set up the jkmount in my 
>> httpd.conf file to map apache's root to tomcat's root.
>
> Yes renaming a webapp to ROOT with a empty context path, makes it run 
> as the root...
>
> Then...
>
> JkMount /  worker1
>
> Should make apache send it to your tomcat root
>
> --------------------------------------------------------------------------- 
>
> HARBOR : http://www.kewlstuff.co.za/index.htm
> The most powerful application server on earth.
> The only real POJO Application Server.
> See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
> --------------------------------------------------------------------------- 
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

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


Re: tomcat ROOT

Posted by Rusty Wright <ru...@gmail.com>.
Not naive at all; I think it's an entirely relevant and obvious question.

In my situation we have a system that's administered by a different 
group than mine (we're merely application programmers) and the system 
administrators have settled on doing things this way.  They're 
understaffed and overworked so having a common setup for everyone on 
this shared system seems reasonable to me.


André Warnier wrote:
> Johnny Kewl wrote:
>>
>> ----- Original Message ----- From: "Rusty Wright" 
>> <ru...@gmail.com>
>> To: "Markus Lord" <ma...@edu.sait.ca>; "Tomcat Users List" 
>> <us...@tomcat.apache.org>
>> Sent: Tuesday, October 07, 2008 11:31 PM
>> Subject: Re: tomcat ROOT
>>
>>
>>> Hi Markus, did you ever figure this out?  I was looking in the 
>>> archives of the tomcat mailing list and saw your query but it didn't 
>>> seem to me that anyone answered it fully, at least not for me.
>>>
>>> I figured out that I could remove/rename the webapps/ROOT directory 
>>> and deploy my war file as ROOT.war and then it would replace 
>>> tomcat's web page at http://www.myhost.edu/ but I also have apache 
>>> in front of tomcat and I don't understand how to set up the jkmount 
>>> in my httpd.conf file to map apache's root to tomcat's root.
>>
>> Yes renaming a webapp to ROOT with a empty context path, makes it run 
>> as the root...
>>
>> Then...
>>
>> JkMount /  worker1
>>
>> Should make apache send it to your tomcat root
>
> My naive question then would be : why keep Apache in front of Tomcat, 
> if you are redirecting/proxying everything anyway ?
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

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


Re: tomcat ROOT

Posted by André Warnier <aw...@ice-sa.com>.
Johnny Kewl wrote:
> 
> ----- Original Message ----- From: "Rusty Wright" <ru...@gmail.com>
> To: "Markus Lord" <ma...@edu.sait.ca>; "Tomcat Users List" 
> <us...@tomcat.apache.org>
> Sent: Tuesday, October 07, 2008 11:31 PM
> Subject: Re: tomcat ROOT
> 
> 
>> Hi Markus, did you ever figure this out?  I was looking in the 
>> archives of the tomcat mailing list and saw your query but it didn't 
>> seem to me that anyone answered it fully, at least not for me.
>>
>> I figured out that I could remove/rename the webapps/ROOT directory 
>> and deploy my war file as ROOT.war and then it would replace tomcat's 
>> web page at http://www.myhost.edu/ but I also have apache in front of 
>> tomcat and I don't understand how to set up the jkmount in my 
>> httpd.conf file to map apache's root to tomcat's root.
> 
> Yes renaming a webapp to ROOT with a empty context path, makes it run as 
> the root...
> 
> Then...
> 
> JkMount /  worker1
> 
> Should make apache send it to your tomcat root

My naive question then would be : why keep Apache in front of Tomcat, if 
you are redirecting/proxying everything anyway ?

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


Re: tomcat ROOT

Posted by Johnny Kewl <jo...@kewlstuff.co.za>.
----- Original Message ----- 
From: "Rusty Wright" <ru...@gmail.com>
To: "Markus Lord" <ma...@edu.sait.ca>; "Tomcat Users List" 
<us...@tomcat.apache.org>
Sent: Tuesday, October 07, 2008 11:31 PM
Subject: Re: tomcat ROOT


> Hi Markus, did you ever figure this out?  I was looking in the archives of 
> the tomcat mailing list and saw your query but it didn't seem to me that 
> anyone answered it fully, at least not for me.
>
> I figured out that I could remove/rename the webapps/ROOT directory and 
> deploy my war file as ROOT.war and then it would replace tomcat's web page 
> at http://www.myhost.edu/ but I also have apache in front of tomcat and I 
> don't understand how to set up the jkmount in my httpd.conf file to map 
> apache's root to tomcat's root.

Yes renaming a webapp to ROOT with a empty context path, makes it run as the 
root...

Then...

JkMount /  worker1

Should make apache send it to your tomcat root

---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
--------------------------------------------------------------------------- 


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