Solved

Making a root folder for JBoss Tomcat 4.1.29

Posted on 2006-10-31
3
578 Views
Last Modified: 2008-01-09
I'm building a new website on Tomcat 4.1.29. I've figured out how to create sub-sites so that the web address is:
http://servername:8080/appname

How do you create a web root folder so that it can be accessed simply with: http://servername/

In the root folder, we also need to place some common CSS and images that can all be accessed by all subsites. (i.e. <img src="/images/photo.jpg">)

In IIS, you simply use the directory structure as needed, but I can't seem to figure out how to do this in Tomcat.
0
Comment
Question by:DJmistral
3 Comments
 
LVL 19

Accepted Solution

by:
ramazanyich earned 50 total points
Comment Utility
Default root pages for tomcat are placed in $TOMCAT_HOME/webapps/ROOT
simplest way is to replace default pages by your's.
Another way is to change path of the default ROOT folder in file $TOMCAT_HOME/conf/server.xml
Search for ROOT in that file and replace it by your directory name
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now