天天看點

Tomcat預設roleTomcat預設role

Tomcat預設role

**1.**tomcat-users.xml,tomcat預設有四種角色

<?xml version="1.0" encoding="UTF-8"?>
<tomcat-users 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"
              version="1.0">
<role rolename="manager-gui"/>
<user username="admin" password="admin" roles="manager-gui"/>
</tomcat-users>      

其中:

manager-gui 允許通路html接口(即URL路徑為/manager/html/*)

manager-script 允許通路純文字接口(即URL路徑為/manager/text/*)

manager-jmx 允許通路JMX代理接口(即URL路徑為/manager/jmxproxy/*)

manager-status 允許通路Tomcat隻讀狀态頁面(即URL路徑為/manager/status/*)

繼續閱讀