Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

Tomcat question - running tomcat webapp from root

Thread view: 
Sean Berry - 18 Dec 2005 22:14 GMT
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.
Tim Terry - 18 Dec 2005 22:23 GMT
> I have tomcat 5, apache 1.3, mod_jk
>
[quoted text clipped - 10 lines]
>
> 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
Sean Berry - 19 Dec 2005 00:14 GMT
>> I have tomcat 5, apache 1.3, mod_jk
>>
[quoted text clipped - 13 lines]
> 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
Tim Terry - 19 Dec 2005 19:19 GMT
>>>I have tomcat 5, apache 1.3, mod_jk
>>>
[quoted text clipped - 21 lines]
>
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.