Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Tomcat question - running tomcat webapp from root

Reply
Thread Tools

Tomcat question - running tomcat webapp from root

 
 
Sean Berry
Guest
Posts: n/a
 
      12-18-2005
I have tomcat 5, apache 1.3, mod_jk

I have a desire to have a webapp currently under /TOMCAT_HOME/webapps/myapp

Then, to view this I can go to:
www.mydomain.com/myapp

Since the entire content of this domain is written in java I don't want to
have it running under a subdirectory like this...

Is there a way to get tomcat/apache configured to run the entire
www.mydomain.com domain as a webapp?

Sorry if there is a better place to post.


 
Reply With Quote
 
 
 
 
Tim Terry
Guest
Posts: n/a
 
      12-18-2005
Sean Berry wrote:
> I have tomcat 5, apache 1.3, mod_jk
>
> I have a desire to have a webapp currently under /TOMCAT_HOME/webapps/myapp
>
> Then, to view this I can go to:
> www.mydomain.com/myapp
>
> Since the entire content of this domain is written in java I don't want to
> have it running under a subdirectory like this...
>
> Is there a way to get tomcat/apache configured to run the entire
> www.mydomain.com domain as a webapp?
>
> Sorry if there is a better place to post.
>
>

So solve this deploy the application in the 'ROOT' context.
In your case expand your war file to /TOMCAT_HOME/webapps/ROOT

Tim
 
Reply With Quote
 
 
 
 
Sean Berry
Guest
Posts: n/a
 
      12-19-2005

"Tim Terry" <(E-Mail Removed)> wrote in message
news:43a5e13f$0$29578$(E-Mail Removed)...
> Sean Berry wrote:
>> I have tomcat 5, apache 1.3, mod_jk
>>
>> I have a desire to have a webapp currently under
>> /TOMCAT_HOME/webapps/myapp
>>
>> Then, to view this I can go to:
>> www.mydomain.com/myapp
>>
>> Since the entire content of this domain is written in java I don't want
>> to have it running under a subdirectory like this...
>>
>> Is there a way to get tomcat/apache configured to run the entire
>> www.mydomain.com domain as a webapp?
>>
>> Sorry if there is a better place to post.

> So solve this deploy the application in the 'ROOT' context.
> In your case expand your war file to /TOMCAT_HOME/webapps/ROOT
>


Thanks for the response. I thought about doing this, but I run other
existing webapps for other domains on the same server.

Any more ideas? Or perhaps I don't fully understand what you are suggesting.

Thanks


 
Reply With Quote
 
Tim Terry
Guest
Posts: n/a
 
      12-19-2005
Sean Berry wrote:
> "Tim Terry" <(E-Mail Removed)> wrote in message
> news:43a5e13f$0$29578$(E-Mail Removed)...
>
>>Sean Berry wrote:
>>
>>>I have tomcat 5, apache 1.3, mod_jk
>>>
>>>I have a desire to have a webapp currently under
>>>/TOMCAT_HOME/webapps/myapp
>>>
>>>Then, to view this I can go to:
>>>www.mydomain.com/myapp
>>>
>>>Since the entire content of this domain is written in java I don't want
>>>to have it running under a subdirectory like this...
>>>
>>>Is there a way to get tomcat/apache configured to run the entire
>>>www.mydomain.com domain as a webapp?
>>>
>>>Sorry if there is a better place to post.

>>
>>So solve this deploy the application in the 'ROOT' context.
>>In your case expand your war file to /TOMCAT_HOME/webapps/ROOT
>>

>
>
> Thanks for the response. I thought about doing this, but I run other
> existing webapps for other domains on the same server.
>
> Any more ideas? Or perhaps I don't fully understand what you are suggesting.
>
> Thanks
>
>


you will still be able to run other webapps on the same server in other
contexts. However, only one application can run in the root context per
host element. If you need more than one application to run in the root
context you could either create a new virtual host and deploy one
application under each. Or sit apache in front of tomcat and do some URL
rewrite trickery.

Tim
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to start with a webapp that is not really a webapp Andrew Java 7 06-28-2009 08:42 PM
changing log file of log4j for an individual package within a webapp running on Tomcat vishal.changrani@gmail.com Java 1 06-03-2007 01:51 AM
Root of WebApp =?Utf-8?B?YmVub2l0?= ASP .Net 0 02-24-2006 10:04 AM
What should I do webapp or webservice + webapp? jhooper71@yahoo.com ASP .Net 6 02-10-2006 02:07 PM
Running 2 webapp in Tomcat - 1 or 2 JVMs James Yong Java 18 12-02-2005 10:29 PM



Advertisments