- Apache Tomcat 7 Essentials
- Tanuj Khare
- 420字
- 2021-08-20 15:35:11
Configuration files and their usage
Apache Tomcat 7 comes with a default setup, which can be directly used for a QA environment. We can customize Tomcat based on the environment specification; components such as Services, Servers, Engine, Connectors, Realm, and Valve can be configured. The Tomcat configuration files are available in the conf
folder. Let's discuss the configuration properties and their usage.
Tomcat 7, by default, comes with seven configuration files (usually in XML format), and these files are very useful in order to customize Tomcat, based on the environment needs. We shall install in the production or development environment.
The following screenshot shows the directory structure of the configuration directory for Tomcat 7:

It's very important from an administrator's point of view, to know about the configuration files and their usage in the Tomcat environment. Let's discuss the configuration properties one-by-one, as follows:
catalina.properties:
This file contains the shared definition of the server, shared loader, and JARs, which need to be scanned at the time of the server startup.server.xml:
This is one of the important configuration files of Tomcat. It holds critical information, such as the IP address, port, virtual host, context path, and so on.tomcat-users.xml:
This file is used for authentication, authorization, and role-based definitions. It is used to implement a database of users/passwords/roles for authentication and container-managed security. To add/remove users or assign/unassign roles to existing users, edit this file.logging.properties:
As the name suggests, it defines the logging properties of the Tomcat instances (such as startup logs).web.xml:
This defines the default values for all web applications loaded into this instance of Tomcat, at the time of startup of the Tomcat instance. If a web application has its own deployment descriptor, its content will always override the configuration settings specified in this default descriptor.context.xml:
The contents of this file will load with every application. Configuration of parameters such as session persistence, Comet connection tracking, and so on, are done here.
- Dreamweaver 8中文版商業(yè)案例精粹
- 計(jì)算機(jī)網(wǎng)絡(luò)應(yīng)用基礎(chǔ)
- 機(jī)艙監(jiān)測(cè)與主機(jī)遙控
- 深度學(xué)習(xí)中的圖像分類與對(duì)抗技術(shù)
- 構(gòu)建高性能Web站點(diǎn)
- Storm應(yīng)用實(shí)踐:實(shí)時(shí)事務(wù)處理之策略
- Machine Learning with the Elastic Stack
- Hands-On Reactive Programming with Reactor
- 網(wǎng)絡(luò)管理工具實(shí)用詳解
- Learning ServiceNow
- 無人駕駛感知智能
- Mastering MongoDB 4.x
- 工業(yè)機(jī)器人應(yīng)用系統(tǒng)三維建模
- 機(jī)器人手工制作
- 軟件需求最佳實(shí)踐