Tomcat Configuration Record

Source: Internet
Author: User

That's how I used to configure manager and admin:

<?xml version= "1.0" encoding= "UTF-8"? ><tomcat-users version= "1.0" xmlns= "Http://tomcat.apache.org/xml" Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation= "Http://tomcat.apache.org/xml Tomcat-users.xsd "><role rolename=" Manager-gui "/><role rolename=" Admin-gui "/><user password=" 123456 "roles=" Manager-gui "Username=" Tomcat "/><user password=" 123456 "roles=" Admin-gui "username=" Tomcat "/ ></tomcat-users>

Today under the tomcat8.0.17 to configure, unexpectedly found such a son, either manager can not admin, or admin line manager not, toss for a while, read the official documents, found to be configured like this:

<?xml version= "1.0" encoding= "UTF-8"? ><tomcat-users version= "1.0" xmlns= "Http://tomcat.apache.org/xml" Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation= "Http://tomcat.apache.org/xml Tomcat-users.xsd "><role rolename=" Manager-gui "/><role rolename=" Admin-gui "/><user password=" 123456 "roles=" Manager-gui,admin-gui "Username=" Tomcat "/></tomcat-users>

This configuration allows the manager and admin to take effect at the same time.

Tomcat Configuration Record

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.