The role of files in the Tomcat conf directory

Source: Internet
Author: User
Tags tomcat
The role of the Tomcat Conf directory under Web.xml,tomcat-users.xml,server.xml, and context.xml four files

The Conf directory is a server-related configuration file.

Tomcat configuration is based on two profiles: 1.server.xml-tomcat Global Profile 2.web.xml-Configure a different relational environment in Tomcat

Server.xml

Server.xml is the master configuration file for Tomcat. Complete two goals:

1 provides the initial configuration of the Tomcat component.

2 illustrates the structure of Tomcat, meaning that it enables Tomcat to complete its start-up and build itself by instantiating components, such as the important elements of the Server.xml species specified in server.xml: elements and their descriptions

Web. XML

Tomcat allows users to define the default value of Web. XML for all relational environments by placing the default Web. XML in the Conf directory. When building a new relational environment, Tomcat uses the default Web. xml file as the basic settings and application-specific Web. XML ( Web-inf/web.xml files that are placed in the application project) to override these default values.

Tomcat-users.xml

Configures the user information for Tomcat.

context.xml

Used to configure the environment. When you develop a project, you typically configure the file, or you can configure Jndi.


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.