Tomcat configuration learning and tomcat configuration Learning

Source: Internet
Author: User

Tomcat configuration learning and tomcat configuration Learning

1 server. xml

<Host appBase = "d:/aaa">
<Context path = "/smswap" reloadable = "true" docBase = "D: \ workspace \ smswap \ WebRoot"> </Context>
</Host>
Let's first look at appBase, which indicates:
1. The subdirectories under this directory will be automatically deployed as applications.
2. The. war file under this directory will be automatically decompressed and deployed as an application.
DocBase only points to the directory of an application, which has nothing to do with appBase.
Summary:
If you want to specify the path
If you want to make it simple, just copy them to the appBase.
If you repeat them, that is, you can run the two directories, but each subdirectory under your application is actually deployed as a separate application.
For example, if your application is
MyApp, placed in
D: \ project \ myApp
There are 2 subdirectories
D: \ project \ myApp \ images
D: \ project \ myApp \ js
You can use
1. Set appBase to d: \ project for automatic system deployment
2 You can manually specify docBase to d: \ project \ myApp
3. If you specify appBase to d: \ project \ myApp
D: \ project \ myApp \ images is no longer a common subdirectory, but a separate virtual directory or application. Because it is automatically deployed
D: \ project \ myApp \ js

Http://www.blogjava.net/jjshcc/archive/2010/06/16/323659.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.