How to use Admin Site in Tomcat

zhaozj2021-02-11  240

Tomcat is indeed advanced than JSwdk because it comes with a tool for managing virtual directories: Admin Site. But by default, this site is not available. Because if you visit http://127.0.0.1:8080/admin/contextadmin/contextadmin.html through your browser, you will find a username and password. So how do you break this limit?

The first step: Modify the properties of the site admin in the conf / server.xml file, set trusted = "true", such as:

Step 2: Add an admin user in the conf / tomcat-users.xml file, such as:

where Name, Password is your username and password you want to enter during your browser. There must be "admin" in Roles, and it is completely lower.

Step 3: Start Tomcat.

This way you can use Tomcat to provide management tools. This tool provides functions such as adding, deleting, displaying, and other functions to virtual directories.

转载请注明原文地址:https://www.9cbs.com/read-4388.html

New Post(0)